joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4126b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x44c
xor eax, eax
mov ecx, 0x40
push esi
push edi
lea edi, [esp + 0x254]
rep stosd dword es:[edi], eax
lea edi, [esp + 8]
mov ecx, 0x13
rep stosd dword es:[edi], eax
lea edi, [esp + 0x54]
mov ecx, 0x40
rep stosd dword es:[edi], eax
lea edi, [esp + 0x154]
mov ecx, 0x40
rep stosd dword es:[edi], eax
lea eax, [esp + 0x354]
push 0x100
push eax
mov ecx, dword [0x438580]
push 0x2ee1
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push ecx
call esi
lea ecx, [esp + 0x254]
push 0x100
mov eax, dword [esp + 0x460]
push ecx
push eax
mov edx, dword [0x438580]
push edx
call esi
lea eax, [esp + 0x254]
push 0x7c
push eax
call fcn.004202c0
add esp, 8
test eax, eax
je 0x412746
mov byte [eax], 0
jmp 0x41272b
mov eax, dword [esp + 0x458]
lea ecx, [esp + 0x254]
lea edx, [esp + 0x154]
mov dword [esp + 0xc], eax
mov eax, 0x100
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x354]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x464]
mov esi, dword [esp + 0x460]
or eax, 8
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], eax
cmp byte [esi], 0
mov dword [esp + 8], 0x4c
mov dword [esp + 0x20], 1
je 0x4127f5
lea eax, [esp + 0x54]
push esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
lea ecx, [esp + 0x54]
push 0x5c
push ecx
call fcn.004202c0
add esp, 8
test eax, eax
je 0x4127e3
mov byte [eax], 0
inc eax
lea ecx, [esp + 0x154]
push eax
push ecx
call edi
jmp 0x412813
lea eax, [esp + 0x154]
push esi
mov byte [esp + 0x58], 0
push eax
call edi
jmp 0x412813
lea eax, [esp + 0x54]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov byte [esp + 0x154], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 8]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x412837
mov eax, dword [esp + 0x24]
push eax
push esi
call edi
mov eax, 1
pop edi
pop esi
add esp, 0x44c
ret
xor eax, eax
pop edi
pop esi
add esp, 0x44c
ret

Function at 0x414a50
Capabilities:
Create thread

Disassembly:
push esi
call fcn.0040c140
test eax, eax
je 0x414a5e
xor eax, eax
pop esi
ret
push 1
call fcn.0040c100
add esp, 4
cmp dword [0x42f754], 0
je 0x414a93
mov esi, dword [esp + 8]
push 0x4367e8
push 0
push esi
push fcn.00405940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4367ec], eax
jmp 0x414aa0
mov esi, dword [esp + 8]
push esi
call fcn.00405940
add esp, 4
push esi
call fcn.00414060
add esp, 4
xor eax, eax
pop esi
ret

Function at 0x414ab0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00414060
add esp, 4
call fcn.0040c140
test eax, eax
je 0x414acb
xor eax, eax
pop esi
ret
push 1
call fcn.0040c100
add esp, 4
cmp dword [0x42f754], 0
je 0x414afe
push 0x4367e8
push 0
push esi
push fcn.00406120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov dword [0x4367ec], eax
xor eax, eax
ret
push esi
call fcn.00406120
add esp, 4
xor eax, eax
pop esi
ret
Function at 0x415650
Capabilities:
Get common file path

Disassembly:
sub esp, 0x8c
cmp dword [esp + 0x94], 0
jne 0x4156a2
lea eax, [esp]
push eax
push 0
push 0x42fc28
push 0x437020
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp]
push ecx
call fcn.0041e8b0
add esp, 4
test eax, eax
je 0x4156bc
lea eax, [esp]
push 0
push 0
push eax
call fcn.00402d10
add esp, 0xc
xor eax, eax
add esp, 0x8c
ret
cmp dword [0x42f7dc], 0
je 0x4156bc
push 0
push 0
push 0x438990
call fcn.00402d10
add esp, 0xc
xor eax, eax
add esp, 0x8c
ret
Function at 0x416b90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x5c
push ebx
push esi
mov ebx, dword [esp + 0x6c]
push edi
mov esi, dword [esp + 0x6c]
push ebp
push ebx
push esi
call fcn.00403a60
add esp, 8
lea eax, [ebx + 0x50]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push eax
push 0x6a
push esi
call edi
lea ecx, [ebx + 0x150]
push ecx
push 0x6c
push esi
call edi
mov eax, dword [ebx + 0x49c]
mov ebp, dword [sym.imp.USER32.dll_CheckDlgButton]
push eax
push 0x71
push esi
call ebp
push 0x42f870
lea ecx, [ebx + 0x150]
push ecx
call fcn.00429c00
add esp, 8
test eax, eax
jne 0x416bfb
push 1
push 0x6f
push esi
call ebp
push 0
push 0
jmp 0x416c06
push 0
push 0x6f
push esi
call ebp
push 0
push 0x2a
push 0xcc
push 0x6d
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebx + 0x1a0]
push eax
push 0x6d
push esi
call edi
lea eax, [ebx + 0x1f0]
push eax
push 0x77
push esi
call edi
mov eax, dword [ebx + 0x4a4]
push eax
push 0x78
push esi
call ebp
mov eax, dword [ebx + 0x48c]
push eax
call sub.wsftp32.dll_Ordinal_920
push eax
push 0
push 0x14d
push 0x6b
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0
mov eax, dword [ebx + 0x488]
push eax
mov ebp, dword [sym.imp.USER32.dll_SetDlgItemInt]
push 0xfc8
push esi
call ebp
lea ecx, [ebx + 0x2d0]
push ecx
push 0x340
push esi
call edi
lea eax, [ebx + 0x240]
push eax
push 0x6e
push esi
call edi
push 0
mov eax, dword [ebx + 0x490]
push eax
push 0x38e
push esi
call ebp
lea eax, [ebx + 0x360]
push eax
push 0x38d
push esi
call edi
lea eax, [esp + 0x10]
push 0x438470
push 0x50
push eax
push 0x42f0f0
push str.COMMENT
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10]
push ecx
push 0x3ba
push esi
call edi
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x5c
ret
Function at 0x418f60
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax], 0x67452301
ret
Function at 0x41e770
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x240
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push 0x437020
call esi
test eax, eax
jle 0x41e8a5
push 0x437020
call esi
cmp byte [eax + 0x43701f], 0x5c
je 0x41e7b3
push 0x42f16c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x437020
call esi
jmp 0x41e7b9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push 0x437020
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
lea ecx, [esp + 0x10]
push str.DSP.
push ecx
call esi
lea eax, [esp + 0x110]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov ebp, eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
je 0x41e835
lea eax, [esp + 0x10]
push 0x437020
push eax
call edi
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea ecx, [esp + 0x10]
push ecx
call fcn.0042b810
lea ecx, [esp + 0x114]
add esp, 4
push ecx
push ebp
call ebx
test eax, eax
jne 0x41e7f7
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push 0x437020
push eax
call edi
lea eax, [esp + 0x10]
push str.EDT.
push eax
call esi
lea eax, [esp + 0x110]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov ebp, eax
je 0x41e8a5
lea eax, [esp + 0x10]
push 0x437020
push eax
call edi
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea ecx, [esp + 0x10]
push ecx
call fcn.0042b810
lea ecx, [esp + 0x114]
add esp, 4
push ecx
push ebp
call ebx
test eax, eax
jne 0x41e867
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x240
ret
Function at 0x41e8b0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x158
push ebx
push esi
push edi
push ebp
push 0x42f20c
push eax
call fcn.00420090
add esp, 8
mov esi, eax
test esi, esi
je 0x41e9ea
push 0xb4
push 0x438590
call fcn.00420370
add esp, 8
push 0x438590
push str._Directory_of__s_n_n
push esi
call fcn.00420000
lea eax, [esp + 0x34]
add esp, 0xc
push eax
push 0x42fccc
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov edi, eax
je 0x41e9e1
mov ebx, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov ebp, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
call ebp
test byte [esp + 0x28], 0x10
je 0x41e982
xor eax, eax
lea ecx, [esp + 0x54]
mov ax, word [esp + 0x1a]
push eax
mov eax, dword [esp + 0x1c]
and eax, 0xffff
push eax
xor eax, eax
mov ax, word [esp + 0x1e]
push eax
xor eax, eax
mov ax, word [esp + 0x1e]
push eax
mov eax, dword [esp + 0x20]
and eax, 0xffff
push eax
push ecx
push str.__30.30s__DIR________04u__02u__02u___2u:_02u_n
push esi
call fcn.00420000
add esp, 0x20
jmp 0x41e9c6
xor eax, eax
mov ecx, dword [esp + 0x48]
mov ax, word [esp + 0x1a]
lea edx, [esp + 0x54]
push eax
mov eax, dword [esp + 0x1c]
and eax, 0xffff
push eax
xor eax, eax
mov ax, word [esp + 0x1e]
push eax
xor eax, eax
mov ax, word [esp + 0x1e]
push eax
mov eax, dword [esp + 0x20]
and eax, 0xffff
push eax
push ecx
push edx
push str.__30.30s__10lu__04u__02u__02u___2u:_02u_n
push esi
call fcn.00420000
add esp, 0x24
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41e922
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.0041ff60
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x158
ret
Function at 0x41f910
Capabilities:
Read .ini file

Disassembly:
cmp dword [0x433e54], 0
push esi
push edi
jne 0x41f9df
push 0x438470
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 3
mov edi, 0x433ee0
push str.FONT
push 0x42fa20
call esi
mov ecx, 0xf
push 0x438470
push 0xfffffffffffffff5
mov dword [0x42f828], eax
xor eax, eax
push str.FHEIGHT
rep stosd dword es:[edi], eax
push 0x42fa20
call esi
push 0x438470
mov dword [0x433ee0], eax
push 0
push str.FWIDTH
push 0x42fa20
call esi
push 0x438470
mov dword [0x433ee4], eax
push 0x190
push str.FWEIGHT
push 0x42fa20
call esi
push 0x438470
mov dword [0x433ef0], eax
push 0x31
push str.FPITCH
push 0x42fa20
call esi
push 0x438470
mov byte [0x433efb], al
push 0x1f
push 0x433efc
push str.Courier_New
push str.FNAME
push 0x42fa20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x433ee0
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [0x433e54], eax
mov eax, dword [esp + 0xc]
push eax
call fcn.0041fa70
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x41feb0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x41ff39
lea eax, [esp + 4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41ff39
cmp byte [esp + 4], 0x5c
je 0x41fee7
cmp byte [esp + 4], 0x2f
jne 0x41fefa
mov al, byte [esp + 5]
cmp byte [esp + 4], al
jne 0x41fefa
xor eax, eax
add esp, 0x10c
ret
mov byte [esp], 0x3d
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00421780
lea ecx, [esp + 8]
mov byte [esp + 5], al
mov byte [esp + 6], 0x3a
mov byte [esp + 7], 0
lea edx, [esp + 4]
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x41ff39
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004208f0
add esp, 4
mov eax, 0xffffffff
add esp, 0x10c
ret
Function at 0x4203a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x420415
push ebx
call fcn.004204e0
add esp, 4
test eax, eax
jne 0x4203e3
call fcn.00420980
mov dword [eax], 0xf
call fcn.00420970
pop edi
mov dword [eax], 0xd
xor eax, eax
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x420425
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4204c6
inc eax
cmp eax, 0x104
ja 0x4204c6
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x420477
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jg 0x420451
mov ecx, eax
push ecx
call fcn.00420240
add esp, 4
mov edx, eax
test edx, edx
jne 0x420497
call fcn.00420970
pop edi
mov dword [eax], 0xc
xor eax, eax
pop esi
pop ebx
add esp, 0x10c
ret
cmp dword [esp + 0x124], eax
jge 0x420497
call fcn.00420970
pop edi
mov dword [eax], 0x22
xor eax, eax
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x4204e0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x4204f4
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x420526
cmp eax, 1
je 0x420526
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret

Function at 0x420af0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push edi
xor edi, edi
push 0x74
push 1
call fcn.004238c0
add esp, 8
mov esi, eax
cmp esi, edi
je 0x420b43
push esi
call fcn.00423780
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ecx
push esi
mov edx, dword [esp + 0x14]
push 4
push esi
push 0x420b80
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov edi, eax
test edi, edi
jne 0x420b61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004219b0
add esp, 4
test edi, edi
je 0x420b59
push edi
call fcn.004208f0
add esp, 4
mov eax, 0xffffffff
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x420b3b
mov eax, edi
pop edi
pop esi
ret
Function at 0x4211b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4211e6
cmp byte [esp + 5], 0x3a
jne 0x4211e6
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00425280
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x4211f0
Capabilities:
Set current directory

Disassembly:
sub esp, 4
push ebx
mov ebx, dword [esp + 0xc]
cmp ebx, 1
jl 0x421260
cmp ebx, 0x1f
jg 0x421260
push 0xc
add bl, 0x40
call fcn.00421840
mov byte [esp + 9], 0x3a
mov byte [esp + 0xa], 0
mov byte [esp + 8], bl
lea ebx, [esp + 8]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x42123d
push 0xc
call fcn.004218b0
add esp, 4
xor eax, eax
pop ebx
add esp, 4
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004208f0
add esp, 4
push 0xc
call fcn.004218b0
add esp, 4
mov eax, 0xffffffff
pop ebx
add esp, 4
ret
call fcn.00420970
mov dword [eax], 0xd
call fcn.00420980
pop ebx
mov dword [eax], 0xf
mov eax, 0xffffffff
add esp, 4
ret

Function at 0x421280
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x42129f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4212b2
push eax
call fcn.004208f0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x421380
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x42139c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4213af
push eax
call fcn.004208f0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4214c0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d030
push 0x423d08
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4324b0], eax
xor eax, eax
mov al, byte [0x4324b1]
mov dword [0x4324bc], eax
mov eax, dword [0x4324b0]
shr dword [0x4324b0], 0x10
and eax, 0xff
mov dword [0x4324b8], eax
shl eax, 8
add eax, dword [0x4324bc]
mov dword [0x4324b4], eax
call fcn.00422c50
call fcn.00423720
test eax, eax
jne 0x421539
push 0x10
call fcn.00421660
add esp, 4
mov dword [ebp - 4], 0
call fcn.00425d50
call fcn.00425d40
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43d208], eax
call fcn.00425890
mov dword [0x431f70], eax
test eax, eax
je 0x42156c
cmp dword [0x43d208], 0
jne 0x421576
push 0xffffffffffffffff
call fcn.00423a40
add esp, 4
call fcn.00425620
call fcn.00425540
call fcn.00423a10
mov esi, dword [0x43d208]
mov al, byte [esi]
cmp al, 0x22
je 0x42159d
cmp al, 0x20
jbe 0x4215ca
inc esi
cmp byte [esi], 0x20
ja 0x421595
jmp 0x4215ca
inc esi
cmp byte [esi], 0x22
je 0x4215c9
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4215c4
xor eax, eax
mov al, bl
push eax
call fcn.004254e0
add esp, 4
test eax, eax
je 0x4215be
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4215a6
cmp byte [esi], 0x22
jne 0x4215ca
inc esi
cmp byte [esi], 0
je 0x4215da
cmp byte [esi], 0x20
ja 0x4215da
inc esi
cmp byte [esi], 0
jne 0x4215cf
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4215fe
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00423a40
jmp 0x42163f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423720
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00421810
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x432428], eax
cmp eax, 0xffffffff
jne 0x42373a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.004238c0
add esp, 8
mov esi, eax
test esi, esi
je 0x42377c
push esi
mov eax, dword [0x432428]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x42377c
push esi
call fcn.00423780
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4237a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x432428]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x423803
push 0x74
push 1
call fcn.004238c0
add esp, 8
mov edi, eax
test edi, edi
je 0x4237f9
push edi
mov eax, dword [0x432428]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4237f9
push edi
call fcn.00423780
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x423803
push 0x10
call fcn.00421660
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x423810
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x432428], 0xffffffff
push esi
je 0x4238af
mov esi, dword [esp + 8]
test esi, esi
jne 0x423838
mov eax, dword [0x432428]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4238a1
mov eax, dword [esi + 0x24]
test eax, eax
je 0x423848
push eax
call fcn.004219b0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x423858
push eax
call fcn.004219b0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x423868
push eax
call fcn.004219b0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x423878
push eax
call fcn.004219b0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x423888
push eax
call fcn.004219b0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x423898
push eax
call fcn.004219b0
add esp, 4
push esi
call fcn.004219b0
add esp, 4
push 0
mov eax, dword [0x432428]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret

Function at 0x423a80
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00423b40
cmp dword [0x4324ec], 1
mov esi, dword [esp + 0x10]
jne 0x423aa3
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4324e8], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4324e4], bl
jne 0x423afd
cmp dword [0x43d1f8], 0
je 0x423aeb
mov edi, dword [0x43d1f4]
sub edi, 4
cmp dword [0x43d1f8], edi
ja 0x423aeb
mov eax, dword [edi]
test eax, eax
je 0x423ae0
call eax
sub edi, 4
cmp dword [0x43d1f8], edi
jbe 0x423ad8
push 0x42f01c
push 0x42f014
call fcn.00423b60
add esp, 8
push 0x42f024
push 0x42f020
call fcn.00423b60
add esp, 8
test ebx, ebx
je 0x423b1c
call fcn.00423b50
pop edi
pop esi
pop ebx
ret
mov dword [0x4324ec], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x425890
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x43264c], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x4258e0
call esi
mov edi, eax
test edi, edi
je 0x4258be
mov dword [0x43264c], 1
mov ebx, dword [esp + 0x10]
jmp 0x4258e8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4258d6
mov dword [0x43264c], 2
jmp 0x4258e8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x10]
cmp dword [0x43264c], 1
jne 0x425997
test edi, edi
jne 0x42590b
call esi
mov edi, eax
test edi, edi
jne 0x42590b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x425925
add esi, 2
cmp word [esi], 0
jne 0x425913
add esi, 2
cmp word [esi], 0
jne 0x425913
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x425986
push ebp
call fcn.00420240
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x425986
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x425975
push ebx
call fcn.004219b0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x43264c], 2
jne 0x425a1b
test ebx, ebx
jne 0x4259ba
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x4259ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4259cf
inc ebp
cmp byte [ebp], 0
jne 0x4259c1
inc ebp
cmp byte [ebp], 0
jne 0x4259c1
sub ebp, ebx
inc ebp
push ebp
call fcn.00420240
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4259f4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret