joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4202e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
jmp 0x4202fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x420301
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4202f0
mov eax, 1
add ebx, ebx
jne 0x420313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x420308
jne 0x420324
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420308
xor ecx, ecx
sub eax, 3
jb 0x420338
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4203aa
mov ebp, eax
add ebx, ebx
jne 0x420343
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x420350
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x420374
inc ecx
add ebx, ebx
jne 0x420360
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x420355
jne 0x420371
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420355
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x420394
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x420385
jmp 0x4202f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x420394
add edi, ecx
jmp 0x4202f6
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4203b2
cmp byte [edi], 9
jne 0x4203b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4203b7
lea edi, [esi + 0x1e000]
mov eax, dword [edi]
or eax, eax
je 0x42042f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20e6c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20f4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4203e4
mov ecx, edi
jns 0x420413
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20f54]
or eax, eax
je 0x420429
mov dword [ebx], eax
add ebx, 4
jmp 0x420401
call dword [esi + 0x20f50]
mov ebp, dword [esi + 0x20f58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x420463
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x59352ada
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
ret 8

Function at 0x59352af4
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.vsansi.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x59352b20
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.vsansi.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x59352b2b
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x59354e25
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x59354e34
pop dword [ebp - 0x28]
mov eax, 0xbf0850ea
sub eax, 0x65d302b6
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xa737c025
add dword [ebp - 0x38], 0xa71a8526
mov dword [ebp - 0x34], 0x9e3d3e55
sub dword [ebp - 0x34], 0x6c09f210
mov dword [ebp - 0x30], 0x1e802ab7
sub dword [ebp - 0x30], 0xd233e689
mov dword [ebp - 0x2c], 0x1ce77873
sub dword [ebp - 0x2c], 0x1ce77873
lea eax, [ebp - 0x38]
push eax
mov eax, 0xe480d149
sub eax, 0x8b4ec0e9
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x1e8956d4
add dword [ebp - 0x38], 0x55e91282
mov dword [ebp - 0x34], 0x7c4592f4
add dword [ebp - 0x34], 0xc526ce81
mov dword [ebp - 0x30], 0xa336b8f8
sub dword [ebp - 0x30], 0x3fc74c8c
mov dword [ebp - 0x2c], 0x6ac2bf59
add dword [ebp - 0x2c], 0x953d40a7
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x40abe
push 0
call eax
mov ecx, 0xda608d5d
add ecx, 0x259fcaaa
xor edi, edi
add edi, eax
mov esi, 0xfc7e92f8
add esi, 0x5cb82d08
add esi, dword [ebp - 0x28]
mov ebx, 0x8b6fe8d4
add ebx, 0x7b465828
mov edx, dword [esi]
sub dword [ebp - 4], 0x2673b84a
xor edx, ebx
xor dword [ebp - 0x10], 0x88618bae
mov dword [edi], edx
mov dword [ebp - 0x1c], 0xadcaddb0
add edi, 0xe868133c
sub edi, 0xe8681338
add esi, 4
loop 0x59354f53
add eax, 0x152ef
xor ebx, ebx
add ebx, eax
add eax, 0x4d8c1119
sub eax, 0x4d8c1114
mov ecx, 0x59320000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401020
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x407070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x85
lea ecx, [ebp - 0x8c]
push 0
push ecx
mov dword [ebp - 0x2b8], eax
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.MSVCR80.dll_getenv]
push str.CADRFC
call edi
add esp, 0x10
test eax, eax
jne 0x40112e
mov ebx, dword [sym.imp.MSVCR80.dll_fopen]
push 0x405218
push str.._dev_rfc
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x4011c6
push str.HOME
call edi
add esp, 4
test eax, eax
je 0x40122d
lea edx, [ebp - 0x8c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4010a3
lea eax, [ebp - 0x8c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4010b8
sub eax, edx
mov al, byte [ebp + eax - 0x8d]
cmp al, 0x2f
je 0x4010f4
cmp al, 0x5c
je 0x4010f4
lea edi, [ebp - 0x8c]
add edi, 0xffffffff
jmp 0x4010e0
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4010e0
mov dx, word [0x405200]
mov word [edi], dx
lea eax, [ebp - 0x8c]
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401100
mov ecx, dword [str.dev_rfc]
mov edx, dword [0x4051fc]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [ebp - 0x8c]
push 0x405218
push eax
call ebx
jmp 0x4011bd
lea edx, [ebp - 0x8c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401136
lea eax, [ebp - 0x8c]
lea edx, [eax + 1]
jmp 0x401150
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401150
sub eax, edx
mov al, byte [ebp + eax - 0x8d]
cmp al, 0x2f
je 0x401187
cmp al, 0x5c
je 0x401187
lea edi, [ebp - 0x8c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x401173
mov cx, word [0x405200]
mov word [edi], cx
lea eax, [ebp - 0x8c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401190
mov edx, dword [str.dev_rfc]
mov ecx, dword [0x4051fc]
mov dword [eax], edx
lea edx, [ebp - 0x8c]
push 0x405218
push edx
mov dword [eax + 4], ecx
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40122d
mov eax, dword [ebp - 0x2b8]
mov edi, dword [sym.imp.MSVCR80.dll_fprintf]
push eax
push str._n_s_in_CADRFTST_n
push esi
call edi
push 0x228
lea ecx, [ebp - 0x2b4]
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0x18
lea edx, [ebp - 0x2b4]
push edx
call sub.LIBRFC32.dll_RfcLastErrorEx
push str.Error_info_:_n
push esi
call edi
lea eax, [ebp - 0x2b0]
push eax
push str.key________:__s_n
push esi
call edi
lea ecx, [ebp - 0x28f]
push ecx
push str.message____:__s_n
push esi
call edi
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x24
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040446e
mov esp, ebp
pop ebp
ret
Function at 0x403e10
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_printf]
push esi
push edi
push str._n_n_n
mov esi, 1
call ebx
push str.____________________CAD_RFC_Test_Program_4.6A_________________n
call ebx
push str._n_n
call ebx
mov eax, dword [sym.imp.MSVCR80.dll___argc]
add esp, 0xc
cmp dword [eax], 2
jl 0x403e8c
mov ecx, dword [sym.imp.MSVCR80.dll___argv]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 0xa
push str._r3connect
push eax
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x403e8c
mov ecx, dword [sym.imp.MSVCR80.dll___argc]
cmp dword [ecx], 2
jne 0x403e9e
mov edx, dword [sym.imp.MSVCR80.dll___argv]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.MSVCR80.dll_atoi]
mov esi, eax
add esp, 4
cmp esi, 1
jl 0x403e8c
cmp esi, 0x10
jle 0x403e9e
push 2
call fcn.00401240
add esp, 4
push 1
call dword [sym.imp.MSVCR80.dll_exit]
call fcn.00401da0
mov edi, eax
test edi, edi
jne 0x404076
cmp esi, 1
jne 0x403ec7
push esi
call fcn.00401240
add esp, 4
call fcn.00401ef0
mov edi, eax
jmp 0x404060
cmp esi, 2
jne 0x403ee2
push 3
call fcn.00401240
add esp, 4
call fcn.004020d0
mov edi, eax
jmp 0x404060
cmp esi, 3
jne 0x403f06
push 4
call fcn.00401240
mov edx, dword [sym.imp.MSVCR80.dll___argv]
mov eax, dword [edx]
push eax
call fcn.00403580
add esp, 8
mov edi, eax
jmp 0x404060
cmp esi, 4
jne 0x403f21
push 0x12
call fcn.00401240
add esp, 4
call fcn.00402130
mov edi, eax
jmp 0x404060
cmp esi, 5
jne 0x403f3c
push 0x13
call fcn.00401240
add esp, 4
call fcn.00402270
mov edi, eax
jmp 0x404060
cmp esi, 6
jne 0x403f57
push 0x14
call fcn.00401240
add esp, 4
call fcn.00402410
mov edi, eax
jmp 0x404060
cmp esi, 7
jne 0x403f72
push 0x1a
call fcn.00401240
add esp, 4
call fcn.00402490
mov edi, eax
jmp 0x404060
cmp esi, 8
jne 0x403f8d
push 0x1b
call fcn.00401240
add esp, 4
call fcn.004027b0
mov edi, eax
jmp 0x404060
cmp esi, 9
jne 0x403fa8
push 0x1c
call fcn.00401240
add esp, 4
call fcn.00402db0
mov edi, eax
jmp 0x404060
cmp esi, 0xa
jne 0x403fc3
push 0x22
call fcn.00401240
add esp, 4
call fcn.00403010
mov edi, eax
jmp 0x404060
cmp esi, 0xb
jne 0x403fde
push 0x23
call fcn.00401240
add esp, 4
call fcn.00403160
mov edi, eax
jmp 0x404060
cmp esi, 0xc
jne 0x403ff6
push 0x24
call fcn.00401240
add esp, 4
call fcn.004032a0
mov edi, eax
jmp 0x404060
cmp esi, 0xd
jne 0x40400e
push 0x27
call fcn.00401240
add esp, 4
call fcn.00403700
mov edi, eax
jmp 0x404060
cmp esi, 0xe
jne 0x404026
push 0x28
call fcn.00401240
add esp, 4
call fcn.00403890
mov edi, eax
jmp 0x404060
cmp esi, 0xf
jne 0x40403e
push 0x29
call fcn.00401240
add esp, 4
call fcn.00403a60
mov edi, eax
jmp 0x404060
cmp esi, 0x10
jne 0x404056
push 0x2d
call fcn.00401240
add esp, 4
call fcn.00403ce0
mov edi, eax
jmp 0x404060
push 0x19
call fcn.00401240
add esp, 4
push str._nTerminate_connection_n
call ebx
mov ecx, dword [0x40741c]
add esp, 4
push ecx
call sub.LIBRFC32.dll_RfcClose
mov eax, edi
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x40446e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x407070]
jne 0x404478
repz ret
jmp fcn.004047f8
Function at 0x401f20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
push esi
push edi
lea edi, [ebp - 0x320]
mov ecx, 0xc8
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x406010]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp esi, esp
call fcn.00402e91
test eax, eax
jne 0x401f84
mov esi, esp
push str.Unable_to_get_executable_file_name._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
cmp esi, esp
call fcn.00402e91
jmp 0x40210f
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x210]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x401fc2
mov esi, esp
push str.Unable_to_get_version_info_size._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
cmp esi, esp
call fcn.00402e91
jmp 0x40210f
mov eax, dword [ebp - 0x224]
push eax
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x224]
push eax
push 0
lea ecx, [ebp - 0x210]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40201f
mov esi, esp
push str.Unable_to_get_version_info._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
cmp esi, esp
call fcn.00402e91
jmp 0x40210f
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x230]
push eax
push 0x404958
mov ecx, dword [ebp - 0x228]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40205e
mov esi, esp
push str.Unable_to_query_version_value._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
cmp esi, esp
call fcn.00402e91
jmp 0x40210f
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 0x14]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x244]
mov eax, dword [edx + 0x14]
shr eax, 0x10
push eax
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx + 0x10]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 0x10]
shr ecx, 0x10
push ecx
push str.version__i._i._i._i
lea edx, [ebp - 0x2ac]
push edx
call fcn.00402df0
add esp, 0x18
push 0x404990
lea eax, [ebp - 0x318]
push eax
call fcn.00402e40
add esp, 8
lea ecx, [ebp - 0x2ac]
push ecx
lea edx, [ebp - 0x318]
push edx
call fcn.00402dc0
add esp, 8
push str._njabswitch_enables_or_disables_the_Java_Access_Bridge._n
lea eax, [ebp - 0x318]
push eax
call fcn.00402dc0
add esp, 8
mov esi, esp
lea ecx, [ebp - 0x318]
push ecx
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
cmp esi, esp
call fcn.00402e91
push edx
mov ecx, ebp
push eax
lea edx, [0x402140]
call fcn.00402eb4
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e82
add esp, 0x320
cmp ebp, esp
call fcn.00402e91
mov esp, ebp
pop ebp
ret
Function at 0x402e82
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406010]
jne 0x402e8c
repz ret
jmp fcn.004031ae
Function at 0x41cbaa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c84c

Function at 0x41cbb5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041c9db

Function at 0x41cfaf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040bb30
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041aae9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41cff1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41d14d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00427e50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x483408]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041e17f
mov ecx, dword [esi*4 + 0x483408]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41d146
cmp eax, dword [edi + ecx + 0x24]
jne 0x41d146
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d146
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041e17f
add esp, 0x14
test edx, edx
jl 0x41d146
jg 0x41d0bc
test eax, eax
jb 0x41d146
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41d146
jl 0x41d0d6
cmp dword [ebp - 0x1008], eax
ja 0x41d146
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41d0f4
test ebx, ebx
je 0x41d12d
cmp ecx, edi
jae 0x41d12d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41d10e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41d11a
cmp byte [ecx + 1], 0xa
jne 0x41d11a
inc ecx
jmp 0x41d11a
movzx eax, al
movsx eax, byte [eax + 0x435310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41d0f4
cmp edx, ebx
jne 0x41d0f4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41d14b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040afc3
leave
ret
Function at 0x41d61d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x483408]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d65d
cmp byte [ebx], 0xa
jne 0x41d65d
or byte [eax + edi + 0x28], 4
jmp 0x41d662
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d760
mov al, byte [edx]
cmp al, 0x1a
je 0x41d742
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d691
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d6b6
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d6c0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41d673
jmp 0x41d760
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d73d
cmp dword [ebp - 0xc], 0
je 0x41d73d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x483408]
test byte [eax + edi + 0x28], 0x48
je 0x41d717
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d702
mov byte [esi], dl
jmp 0x41d713
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x483408]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d760
cmp byte [ebp - 1], 0xa
jne 0x41d726
cmp esi, ebx
jne 0x41d726
mov byte [esi], 0xa
jmp 0x41d75f
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041e19d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d760
mov byte [esi], 0xd
jmp 0x41d75f
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x483408]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d75c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d760
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d769
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x483408]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d7ac
cmp word [esi], dx
jne 0x41d7ac
or byte [edi + eax + 0x28], 4
jmp 0x41d7b1
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d904
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d8e4
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d7f3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d829
cmp eax, edx
jae 0x41d835
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41d7cb
jmp 0x41d904
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d8e0
cmp dword [ebp - 0x14], 0
je 0x41d8e0
mov eax, dword [ebx*4 + 0x483408]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d8b8
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d881
mov word [esi], cx
jmp 0x41d8b4
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x483408]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x483408]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x483408]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d904
pop ebx
cmp word [ebp - 4], bx
jne 0x41d8c9
cmp esi, dword [ebp + 0xc]
jne 0x41d8c9
mov word [esi], bx
jmp 0x41d901
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041e19d
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d904
push 0xd
jmp 0x41d8fd
mov ecx, dword [ebx*4 + 0x483408]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d8fb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d904
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42601f
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov al, byte [0x5d4bf0]
cmp eax, 1
jne 0x426030
jmp 0x42605f
call fcn.00425f25
and eax, 0xff
test eax, eax
je 0x426040
jmp 0x426058
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x425f74
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x5d4bec], eax
mov byte [0x5d4bf0], 1
pop ebp
ret
Function at 0x4269db
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov ecx, 0x20000
sub ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x426a1d
xor eax, eax
jmp 0x426a3e
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 4]
jne 0x426a2a
or eax, 0xffffffff
jmp 0x426a3e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret