joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4abaa0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x50efc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
mov dword [esp], ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.004bbd10
xor edi, edi
mov dword [esp + 0x10], 0x5162e8
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 1
mov eax, dword [esp + 0x18c]
push 0x545eb0
push eax
mov dword [esp + 0x18c], edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x4abb2a
lea ecx, [esp + 0x10]
mov dword [esp + 0x184], 0xffffffff
mov dword [esp + 0x10], 0x51633c
mov dword [esp + 0x70], edi
call fcn.004bbda0
xor eax, eax
jmp 0x4abc83
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x84
lea ecx, [esp + 0x8c]
push 1
push ecx
call ebp
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
lea eax, [esp + 0x114]
mov edx, str.DICM
add esp, 0x10
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x4abb66
mov edi, 0x84
jmp 0x4abb70
push 0
push 0
push esi
call ebx
add esp, 0xc
push esi
push 6
lea edx, [esp + 0x8c]
push 1
push edx
call ebp
mov cl, byte [esp + 0x99]
xor eax, eax
cmp cl, 0xa
push 0
setg al
add eax, 0x64
push edi
push esi
mov ebp, eax
call ebx
mov dword [esp + 0x84], edi
mov edi, dword [esp + 0x1b4]
add esp, 0x1c
cmp edi, 1
mov dword [esp + 0x80], esi
jne 0x4abbdc
push 0xc350
lea ecx, [esp + 0x1c]
call fcn.004bc590
test eax, eax
je 0x4abbfa
push 0xc350
lea ecx, [esp + 0x1c]
call fcn.004bc590
test eax, eax
jne 0x4abbc8
jmp 0x4abbfa
test edi, edi
jne 0x4abbe7
push 0x2800
jmp 0x4abbf1
cmp edi, 2
jne 0x4abbfa
push 0x96000
lea ecx, [esp + 0x1c]
call fcn.004bbfc0
push 0x70
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x18c], 1
je 0x4abc25
mov ecx, esi
call fcn.004aa6b0
mov dword [esi], 0x515c58
jmp 0x4abc27
xor esi, esi
mov ecx, dword [esp + 0x10]
push edi
push ebp
lea eax, [esp + 0x20]
mov edx, dword [ecx]
push esi
push eax
mov byte [esp + 0x19c], 0
call dword [edx + 0x64]
pop ebp
pop ebx
test eax, eax
jne 0x4abc54
test esi, esi
je 0x4abc52
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
xor esi, esi
lea ecx, [esp + 0x10]
call fcn.004ab810
lea ecx, [esp + 0x10]
mov dword [esp + 0x184], 0xffffffff
mov dword [esp + 0x10], 0x51633c
mov dword [esp + 0x70], 0
call fcn.004bbda0
mov eax, esi
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x180
ret 8
Function at 0x4ac2a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x50f08b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.004bbd10
xor ebp, ebp
mov dword [esp + 0x10], 0x5162e8
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], 1
mov eax, dword [esp + 0x198]
mov dword [esp + 0x18c], ebp
dec eax
cmp eax, 4
ja case.0x4ac2f8.4
jmp dword [eax*4 + 0x4ac4b0]
mov ecx, dword [esp + 0x194]
push 0x545eb4
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
cmp edi, ebp
je case.0x4ac2f8.4
mov ecx, dword [esp + 0x19c]
mov edx, dword [esi]
lea eax, [esp + 0x10]
push 2
push eax
push ecx
mov ecx, esi
call dword [edx + 0x48]
mov dword [esp + 0x78], edi
jmp 0x4ac438
mov edx, dword [esp + 0x194]
push 0x545eb4
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
je case.0x4ac2f8.4
mov eax, dword [esi]
mov edi, dword [esp + 0x19c]
push 2
jmp 0x4ac3d2
mov edx, dword [esp + 0x194]
push 0x545eb4
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
je case.0x4ac2f8.4
mov eax, dword [esi]
mov edi, dword [esp + 0x19c]
push 3
jmp 0x4ac3d2
mov edx, dword [esp + 0x194]
push 0x545eb4
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
je case.0x4ac2f8.4
mov edi, dword [esp + 0x19c]
push 0x10
push 2
mov ecx, edi
call fcn.004ab080
test eax, eax
jne 0x4ac3d8
mov eax, dword [esi]
push 2
push edi
mov ecx, esi
call dword [eax + 0x74]
mov edx, dword [esi]
lea eax, [esp + 0x10]
push 0x65
push eax
push edi
mov ecx, esi
call dword [edx + 0x68]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x7c]
lea edx, [esp + 0xfc]
rep stosd dword es:[edi], eax
mov edi, str.DICM
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x84
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov dword [esp + 0x78], ebx
lea ecx, [esp + 0x10]
call fcn.004bc1b0
lea ecx, [esp + 0x10]
call fcn.004ab810
lea ecx, [esp + 0x10]
mov dword [esp + 0x18c], 0xffffffff
mov dword [esp + 0x10], 0x51633c
mov dword [esp + 0x70], ebp
call fcn.004bbda0
mov eax, 1
jmp 0x4ac493
lea ecx, [esp + 0x10]
mov dword [esp + 0x18c], 0xffffffff
mov dword [esp + 0x10], 0x51633c
mov dword [esp + 0x70], ebp
call fcn.004bbda0
xor eax, eax
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x180
ret 0xc
Function at 0x4bb540
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x80
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, edx
or ecx, 0xffffffff
lea ebp, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
jne 0x4bb5b9
lea ecx, [esp + 0x10]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4bb5b9
mov esi, dword [eax]
lea ecx, [ebx + 0x34]
mov edx, ecx
pop edi
mov dword [edx], esi
mov esi, dword [eax + 4]
mov dword [edx + 4], esi
mov esi, dword [eax + 8]
mov dword [edx + 8], esi
mov eax, dword [eax + 0xc]
pop esi
pop ebp
mov dword [edx + 0xc], eax
mov eax, ecx
pop ebx
add esp, 0x80
ret 4
lea ecx, [esp + 0x10]
push ecx
call sub.WSOCK32.dll_inet_addr
lea edx, [ebx + 8]
lea ecx, [ebx + 0xc]
pop edi
pop esi
mov dword [edx], eax
mov dword [ebx + 0x40], ecx
lea eax, [ebx + 0x34]
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x80
ret 4

Function at 0x4bb644
Capabilities:
Create tcp socket

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x10]
mov dword [esi + 0x1c], ebx
cmp eax, ebx
mov dword [esi + 0x20], ebx
je 0x4bb65d
push eax
call sub.WSOCK32.dll_closesocket
mov eax, dword [esp + 0x20]
push ebx
push eax
mov ecx, esi
call fcn.004bb5e0
cmp eax, ebx
jne 0x4bb679
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
push 6
push 1
push 2
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
call sub.WSOCK32.dll_socket
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x4bb6ad
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 4
lea ecx, [esi + 0x24]
push 0x10
push ecx
push eax
mov dword [esi + 0x28], ebx
mov word [esi + 0x26], di
mov word [ecx], 2
call sub.WSOCK32.dll_bind
test eax, eax
je 0x4bb6f5
mov ecx, esi
call fcn.004bbb90
test eax, eax
je 0x4bb6f5
mov ecx, dword [esi + 0x10]
push ecx
call sub.WSOCK32.dll_closesocket
mov ecx, esi
call fcn.004bbb90
mov dword [esi + 4], eax
mov dword [esi + 0x10], ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 4
mov edx, dword [esi + 0x10]
push 5
push edx
call sub.WSOCK32.dll_listen
test eax, eax
je 0x4bb71b
mov eax, dword [esi + 0x10]
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0x10], ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 4
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x20], 1
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 4
Function at 0x4c2180
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebp
push esi
push 0x545eb0
mov ebp, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 0x10], esi
jne 0x4c21ac
pop esi
pop ebp
add esp, 0x10
ret 0x10
mov ecx, dword [esp + 0x24]
push ebx
push edi
push 0
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
lea ecx, [ebp + 0xc]
call fcn.004c1e30
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov edi, 0x2000
mov dword [esp + 0x28], 0
lea ebx, [eax + edx]
mov eax, dword [ebp + 8]
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
test ebx, ebx
jbe 0x4c231d
mov esi, dword [esp + 0x24]
jmp 0x4c2209
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov eax, ebx
sub eax, ecx
cmp eax, edi
jae 0x4c2217
mov edi, eax
lea eax, [ecx + edi]
cmp eax, ebx
lea ebx, [ebp + 0x85]
mov dword [esp + 0x30], eax
mov al, byte [ebx]
jne 0x4c222e
or al, 2
jmp 0x4c2230
and al, 1
mov cl, byte [ebp + 0x84]
mov byte [ebx], al
mov dl, al
lea eax, [edi + 2]
mov dword [ebp + 0x7c], eax
add eax, 4
mov dword [ebp + 8], eax
lea eax, [ebp + 4]
mov byte [ebp + 0x80], cl
push eax
mov ecx, esi
mov byte [ebp + 0x81], dl
mov byte [eax], 4
mov byte [ebp + 5], 0
call fcn.004bc0c0
lea eax, [ebp + 5]
mov ecx, esi
push eax
call fcn.004bc0c0
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.004bc150
lea eax, [ebp + 0x7c]
mov ecx, esi
push eax
call fcn.004bc150
lea eax, [ebp + 0x80]
mov ecx, esi
push eax
call fcn.004bc0c0
push ebx
mov ecx, esi
call fcn.004bc0c0
test edi, edi
je 0x4c2300
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jae 0x4c22b7
push edi
push esi
lea ecx, [ebp + 0xc]
call fcn.004c1e50
jmp 0x4c2300
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
mov ebx, edi
jbe 0x4c22d9
sub eax, ecx
lea ecx, [ebp + 0xc]
push eax
push esi
mov dword [esp + 0x30], eax
call fcn.004c1e50
sub ebx, dword [esp + 0x28]
test ebx, ebx
jle 0x4c2300
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
push ecx
push ebx
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x3c]
add esp, 0x10
mov ecx, esi
push ebx
push eax
call fcn.004bc830
mov ebx, dword [esp + 0x30]
mov ecx, esi
mov dword [esp + 0x28], ebx
call fcn.004bc1b0
cmp ebx, dword [esp + 0x14]
jb 0x4c2205
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
push edx
mov dword [ebp + 8], ecx
call sub.MFC42.DLL_operatordelete
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
mov eax, 1
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x10
ret 0x10
Function at 0x4c2ab0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5102ab
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push 0x545eb0
mov ebx, ecx
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4c2afa
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
push ebp
push 0x28
lea ecx, [esp + 0x14]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov esi, str.HCZ_VR_LIB
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4c2b3a
test cl, cl
je 0x4c2b36
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4c2b3a
add eax, 2
add esi, 2
test cl, cl
jne 0x4c2b16
xor eax, eax
jmp 0x4c2b3f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c2b6b
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4c2b6b
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
push 0x10
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x44], esi
test esi, esi
mov dword [esp + 0x3c], 0
je 0x4c2bbb
push edi
mov edi, dword [esp + 0x20]
mov dword [esi], edi
mov dword [esi + 4], 0
lea eax, [edi*4]
push eax
call sub.MFC42.DLL_operatornew
lea ecx, [edi*8]
mov dword [esi + 8], eax
push ecx
call sub.MFC42.DLL_operatornew
add esp, 8
mov dword [esi + 0xc], eax
pop edi
jmp 0x4c2bbd
xor esi, esi
test esi, esi
mov dword [ebx], esi
jne 0x4c2be3
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov edx, dword [esp + 0x1c]
push ebp
mov dword [esi + 4], edx
mov eax, dword [ebx]
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
mov dword [eax], ecx
mov eax, dword [ebx]
mov edx, dword [esp + 0x28]
mov ecx, dword [eax + 8]
push edx
push 1
push ecx
call esi
mov eax, dword [ebx]
mov edx, dword [esp + 0x3c]
push ebp
push edx
mov ecx, dword [eax + 0xc]
push 1
push ecx
call esi
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x58]
add esp, 0x24
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
Function at 0x4c3640
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xa08
lea eax, [esp + 0x104]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x4c3823
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x4c3823
mov byte [eax + 1], 0
or ecx, 0xffffffff
lea edi, [esp + 0x114]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.NetFile.ini
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0xa1c]
and ecx, 3
lea edx, [esp + 0x218]
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5436d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x218]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0xa20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebp
lea eax, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push eax
and ecx, 3
push 0xff
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x620]
lea edx, [esp + 0x220]
push ecx
push 0x54aebc
push edx
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x618]
test al, al
je 0x4c3823
mov ebp, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [esp + 0x618]
push 0x3a
push eax
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x4c3823
lea ecx, [esp + 0x618]
push 0x1e
push ecx
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
mov byte [esi], 0
call ebx
lea edi, [esi + 1]
push 0x3a
push edi
call ebp
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4c37ff
mov edx, dword [esp + 0xa20]
push 0x1e
push edi
push edx
call ebx
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa08
ret
mov eax, dword [esp + 0xa20]
push 0x1e
push edi
push eax
mov byte [esi], 0
call ebx
inc esi
push esi
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esp + 0xa34]
add esp, 0x10
mov dword [ecx], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa08
ret
Function at 0x4c3d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x510316
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push esi
mov esi, ecx
mov ecx, dword [esp + 0x43c]
lea eax, [esp + 0x2c]
push edi
push eax
push ecx
mov ecx, esi
call fcn.004c39d0
push 1
lea ecx, [esp + 0xc]
call fcn.004c7f70
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x43c], 0
call fcn.004c7f70
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push edx
push ecx
push 0x100
push 0x603
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44c], 1
call fcn.004c8230
lea eax, [esp + 0x1c]
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, esi
call fcn.004c3bb0
pop edi
pop esi
test eax, eax
jne 0x4c3e2a
lea ecx, [esp + 0x14]
mov byte [esp + 0x430], al
call fcn.004c7fc0
lea ecx, [esp]
mov dword [esp + 0x430], 0xffffffff
call fcn.004c7fc0
or eax, 0xffffffff
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
add esp, 0x434
ret 0xc
mov edx, dword [esp + 0x440]
mov eax, dword [esp + 0x43c]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.004c8170
lea ecx, [esp + 0x14]
mov byte [esp + 0x430], 0
call fcn.004c7fc0
lea ecx, [esp]
mov dword [esp + 0x430], 0xffffffff
call fcn.004c7fc0
mov ecx, dword [esp + 0x428]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x434
ret 0xc

Function at 0x4c6441
Capabilities:
Link many functions at runtime

Disassembly:
mov ecx, 0x54bd30
jmp 0x4c6440
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push str.DcmJpeg.dll
mov dword [esi], 0x51c1a8
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x4c64f5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DCMGetVersion
push eax
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x4c6491
call eax
mov dword [esi + 4], eax
jmp 0x4c6498
mov dword [esi + 4], 1
mov eax, dword [esi + 4]
cmp eax, 1
jne 0x4c64b0
mov eax, dword [esi + 8]
push str.DCMCompress
push eax
call edi
mov dword [esi + 0x10], eax
jmp 0x4c64c3
cmp eax, 2
jne 0x4c64e5
mov ecx, dword [esi + 8]
push str.DCMCompress
push ecx
call edi
mov dword [esi + 0x14], eax
mov edx, dword [esi + 8]
push str.GetDCMCompressPixelData
push edx
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
push str.DCMDecompress
push eax
call edi
mov dword [esi + 0x1c], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esi + 8]
mov dword [esi + 4], ebx
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 8], ebx
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4ccbc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x814
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov eax, dword [esi]
mov dword [ebp - 4], 0
mov ecx, esi
mov byte [ebp - 4], 1
call dword [eax + 0x2c]
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [esi + 0x118], ecx
mov edx, dword [edi + 4]
mov dword [esi + 0x11c], edx
mov eax, dword [edi + 8]
mov dword [esi + 0x120], eax
mov ecx, dword [edi + 0xc]
lea edx, [edi + 0x10]
mov dword [esi + 0x124], ecx
push edx
lea ecx, [esi + 0x128]
call fcn.004c8322
lea eax, [edi + 0x51]
lea ecx, [esi + 0x12c]
push eax
call fcn.004c8322
lea ecx, [edi + 0x5c]
push ecx
lea ecx, [esi + 0x130]
call fcn.004c8322
lea edx, [edi + 0x67]
lea ecx, [esi + 0x134]
push edx
call fcn.004c8322
lea eax, [edi + 0x7c]
lea ecx, [esi + 0x138]
push eax
call fcn.004c8322
lea ecx, [edi + 0x91]
push ecx
lea ecx, [esi + 0x154]
call fcn.004c8322
lea edx, [edi + 0xc4]
lea ecx, [esi + 0x158]
push edx
call fcn.004c8322
lea eax, [edi + 0xf7]
lea ecx, [esi + 0x15c]
push eax
call fcn.004c8322
lea ecx, [edi + 0x12a]
push ecx
lea ecx, [esi + 0x160]
call fcn.004c8322
lea edx, [edi + 0x15d]
lea ecx, [esi + 0x164]
push edx
call fcn.004c8322
lea eax, [edi + 0x190]
lea ecx, [esi + 0x168]
push eax
call fcn.004c8322
lea ecx, [edi + 0x1c3]
push ecx
lea ecx, [esi + 0x16c]
call fcn.004c8322
mov edx, dword [edi + 0x1f8]
mov dword [esi + 0x170], edx
mov eax, dword [edi + 0x1fc]
mov dword [esi + 0x174], eax
mov ecx, dword [edi + 0x200]
mov dword [esi + 0x178], ecx
mov edx, dword [edi + 0x204]
mov dword [esi + 0x17c], edx
mov eax, dword [edi + 0x208]
mov dword [esi + 0x180], eax
mov ecx, dword [edi + 0x20c]
lea edx, [edi + 0x210]
mov dword [esi + 0x184], ecx
push edx
lea ecx, [esi + 0x140]
call fcn.004c830a
lea eax, [edi + 0x214]
lea ecx, [esi + 0x144]
push eax
call fcn.004c830a
lea ecx, [edi + 0x218]
push ecx
lea ecx, [esi + 0x148]
call fcn.004c830a
lea edx, [edi + 0x21c]
lea ecx, [esi + 0x14c]
push edx
call fcn.004c830a
lea eax, [edi + 0x220]
lea ecx, [esi + 0x150]
push eax
call fcn.004c830a
add edi, 0x224
lea ecx, [esi + 0x13c]
push edi
call fcn.004c830a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_AfxTryCleanup
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d7a20
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x512636
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
xor edi, edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x170], edi
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esp + 0x17c]
mov ebp, dword [esp + 0x178]
push ebp
mov byte [esp + 0x174], 1
mov dword [esi], edi
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4d7aac
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x170], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4d7c20
lea eax, [esp + 0x28]
push eax
push 0x543088
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x1c], ebx
je 0x4d7bf6
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x18]
call fcn.004c8322
test byte [esp + 0x28], 0x10
je 0x4d7bb2
mov edx, dword [esp + 0x14]
push 0x543090
push edx
call edi
add esp, 8
test eax, eax
je 0x4d7bdb
mov eax, dword [esp + 0x14]
push 0x54a254
push eax
call edi
add esp, 8
test eax, eax
je 0x4d7bdb
push ebp
lea ecx, [esp + 0x14]
call fcn.004c8322
lea ecx, [esp + 0x18]
push 1
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x542a7c
push eax
call edi
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4d7b5f
push 0x542a7c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004d7a20
add esp, 8
test eax, eax
je 0x4d7a80
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4d7a80
mov edx, dword [esp + 0x20]
mov ebx, dword [esi]
mov eax, dword [esp + 0x24]
add ebx, edx
mov dword [esi], ebx
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x1c]
adc ecx, eax
mov dword [esi + 4], ecx
jmp 0x4d7bdb
mov ecx, dword [esp + 0x44]
mov eax, dword [esi]
add eax, ecx
mov dword [esi], eax
mov edx, dword [esi + 4]
mov eax, 0
adc edx, eax
mov dword [esi + 4], edx
mov edx, dword [esp + 0x48]
mov ecx, dword [esi]
add ecx, edx
mov dword [esi], ecx
mov ecx, dword [esi + 4]
adc ecx, eax
mov dword [esi + 4], ecx
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4d7ad1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x170], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret