joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e03c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x43735c]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x41e078
xor eax, eax
jmp 0x41e1e2
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4658c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41e0b6
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00420aaf
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41e150
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x41e1b3
jmp 0x41e0da
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41e115
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41e106
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x41e0e6
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e174
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41e17d
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x41e0d8
jmp 0x41e17d
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e174
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x41e17d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x41e1dd
cmp dword [ebp - 0x68], eax
je 0x41e1b0
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x41e1a5
call fcn.004186ba
mov dword [eax], 9
call fcn.004186c3
mov dword [eax], esi
jmp 0x41e1d8
push dword [ebp - 0x68]
call fcn.004186cc
pop ecx
jmp 0x41e1d8
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41e1c5
cmp byte [edi], 0x1a
jne 0x41e1c5
xor eax, eax
jmp 0x41e1e0
call fcn.004186ba
mov dword [eax], 0x1c
call fcn.004186c3
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41e1e0
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00415465
add ebp, 0x3a4
leave
ret
Function at 0x41ee75
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43735c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x437df0]
je 0x41eeac
inc eax
cmp eax, 0x13
jb 0x41ee9d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x437df0]
jne 0x41efcf
mov eax, dword [0x464f74]
cmp eax, 1
je 0x41efaa
cmp eax, edx
jne 0x41eedc
cmp dword [0x437444], 1
je 0x41efaa
cmp ecx, 0xfc
je 0x41efcf
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41ef12
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00419e40
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004179c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41ef46
mov eax, edi
push eax
call fcn.004179c0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f338
push edi
call fcn.00415ef0
add esp, 0x10
push edi
call fcn.004179c0
push dword [esi + 0x437df4]
mov ebx, eax
call fcn.004179c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00416020
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00419e40
push edi
push ebx
call fcn.00419e50
push 0x42df94
push ebx
call fcn.00419e50
push dword [esi + 0x437df4]
push ebx
call fcn.00419e50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041f72a
add esp, 0x2c
jmp 0x41efcf
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x437df4]
push dword [esi]
call fcn.004179c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00415465
add ebp, 0x90
leave
ret
Function at 0x41f72a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4653b8], ebx
push esi
push edi
jne 0x41f7aa
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41f7e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4301ac
push edi
call esi
test eax, eax
mov dword [0x4653b8], eax
je 0x41f7e5
push str.GetActiveWindow
push edi
call esi
push 0x430188
push edi
mov dword [0x4653bc], eax
call esi
cmp dword [0x464f80], 2
mov dword [0x4653c0], eax
jne 0x41f7aa
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4653c8], eax
je 0x41f7aa
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4653c4], eax
mov eax, dword [0x4653c4]
test eax, eax
je 0x41f7ef
call eax
test eax, eax
je 0x41f7d6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4653c8]
test eax, eax
je 0x41f7d6
test byte [ebp - 8], 1
jne 0x41f7ef
cmp dword [0x464f8c], 4
jb 0x41f7e9
or byte [ebp + 0x12], 0x20
jmp 0x41f80e
xor eax, eax
jmp 0x41f81e
or byte [ebp + 0x12], 4
jmp 0x41f80e
mov eax, dword [0x4653bc]
test eax, eax
je 0x41f80e
call eax
mov ebx, eax
test ebx, ebx
je 0x41f80e
mov eax, dword [0x4653c0]
test eax, eax
je 0x41f80e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4653b8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421926
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00416020
mov eax, dword [0x43735c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0041df1d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x421a5b
push 2
push esi
push dword [ebp + 8]
call fcn.0041df1d
add esp, 0xc
cmp eax, ebx
je 0x421a5b
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4219fb
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00417cf0
push 0x8000
push dword [ebp + 8]
call fcn.004223c1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4219b1
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0041e03c
add esp, 0xc
cmp eax, 0xffffffff
je 0x4219d1
sub edi, eax
test edi, edi
jg 0x4219a9
jmp 0x4219e9
call fcn.004186c3
cmp dword [eax], 5
jne 0x4219e6
call fcn.004186ba
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004223c1
pop ecx
pop ecx
jmp 0x421a43
jge 0x421a43
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041df1d
push dword [ebp + 8]
call fcn.0041e8e0
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x421a43
call fcn.004186ba
mov dword [eax], 0xd
call fcn.004186c3
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0041df1d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x421a5d
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00415465
leave
ret
Function at 0x422183
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x42219c
or eax, 0xffffffff
jmp 0x4221fd
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4221f9
push 0x3d
push esi
call fcn.00417a6b
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4221f9
cmp esi, eax
je 0x4221f9
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x464fa0]
sete cl
cmp eax, dword [0x464fa4]
mov dword [ebp - 4], ecx
jne 0x4221df
mov edi, eax
call fcn.00422122
mov dword [0x464fa0], eax
cmp eax, ebx
jne 0x422238
cmp dword [ebp + 0xc], ebx
je 0x422201
cmp dword [0x464fa8], ebx
je 0x422201
call fcn.00421229
test eax, eax
je 0x422238
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x42220a
xor eax, eax
jmp 0x4221fc
push 4
call fcn.00416120
cmp eax, ebx
pop ecx
mov dword [0x464fa0], eax
je 0x4221f9
mov dword [eax], ebx
cmp dword [0x464fa8], ebx
jne 0x422238
push 4
call fcn.00416120
cmp eax, ebx
pop ecx
mov dword [0x464fa8], eax
je 0x4221f9
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x464fa0]
sub edi, esi
push esi
call fcn.004220d5
mov edi, eax
test edi, edi
pop ecx
jl 0x42229f
cmp dword [ebx], 0
je 0x42229f
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00416132
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x42227f
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4222e0
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x422276
mov eax, edi
shl eax, 2
push eax
push dword [0x464fa0]
call fcn.00417ae6
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4222e0
jmp 0x4222db
cmp dword [ebp - 4], 0
jne 0x422347
test edi, edi
jge 0x4222af
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x464fa0]
call fcn.00417ae6
test eax, eax
pop ecx
pop ecx
je 0x4221f9
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x464fa0], eax
cmp dword [ebp + 0xc], 0
je 0x422332
push esi
call fcn.004179c0
inc eax
inc eax
push eax
call fcn.00416120
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x422332
push esi
push edi
call fcn.00419e40
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x42232b
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00416132
pop ecx
cmp dword [ebp - 4], 0
je 0x42233f
push esi
call fcn.00416132
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4221fc
push esi
call fcn.00416132
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x422206
Function at 0x422c10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
push 0x1c
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x422c33
xor al, al
pop edi
add esp, 0x1c
ret 0x14
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0xc]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422c57
pop esi
xor al, al
pop edi
add esp, 0x1c
ret 0x14
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
push ebx
push ebp
movzx ebp, word [eax + 6]
sub edi, esi
xor ebx, ebx
test ebp, ebp
lea ecx, [ecx + eax + 0x18]
jbe 0x422c96
lea eax, [ecx + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov esi, dword [eax - 4]
ja 0x422c84
mov ecx, edx
cmp edi, esi
jb 0x422c8e
add ecx, esi
cmp edi, ecx
jbe 0x422ca2
inc ebx
add eax, 0x28
cmp ebx, ebp
jb 0x422c76
pop ebp
pop ebx
pop esi
xor al, al
pop edi
add esp, 0x1c
ret 0x14
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebx
pop ebp
mov dword [edx], ebx
sub edi, esi
pop ebx
mov dword [eax], edi
pop esi
mov al, 1
pop edi
add esp, 0x1c
ret 0x14

Function at 0x422cc0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push edi
mov edi, dword [esp + 0x10]
push str.SymInitialize
push edi
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x422ce5
pop edi
pop esi
xor al, al
pop ebx
ret 4
push str.SymCleanup
push edi
call ebx
test eax, eax
mov dword [esi + 4], eax
je 0x422cdd
push str.StackWalk
push edi
call ebx
test eax, eax
mov dword [esi + 8], eax
je 0x422cdd
push str.SymFunctionTableAccess
push edi
call ebx
test eax, eax
mov dword [esi + 0xc], eax
je 0x422cdd
push str.SymGetModuleBase
push edi
call ebx
test eax, eax
mov dword [esi + 0x10], eax
je 0x422cdd
push str.SymGetSymFromAddr
push edi
call ebx
test eax, eax
mov dword [esi + 0x14], eax
je 0x422cdd
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [esi]
pop edi
test eax, eax
pop esi
setne al
pop ebx
ret 4
Function at 0x423a60
Capabilities:
Get file size
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430930
push 0x4165d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov eax, dword [0x43735c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x194], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x190], ebx
mov dword [ebp - 4], 0
mov byte [ebp - 0x184], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x183]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x184]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x423c2c
mov dword [ebp - 0x198], ebx
cmp word [ebx], 0x5a4d
jne 0x423c2c
mov ebx, dword [ebx + 0x3c]
add ebx, dword [ebp - 0x190]
mov dword [ebp - 0x19c], ebx
cmp dword [ebx], 0x4550
jne 0x423c2c
push 0
push 0x80
push 3
push 0
push 1
push bind
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
mov dword [ebp - 0x188], edx
mov byte [ebp - 0x80], 0
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov dword [ebp - 0x18c], edi
cmp edx, 0xffffffff
je 0x423bab
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x18c], edi
lea edx, [ebp - 0x1a4]
push edx
push 0
push 0
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x423b94
lea ecx, [ebp - 0x1a4]
push ecx
push 0x64
lea edx, [ebp - 0x80]
push edx
call fcn.004244f0
add esp, 0xc
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x188], 0xffffffff
mov ecx, dword [ebp + 0x10]
push ecx
push str.Module__d_r_n
push esi
call fcn.00424800
lea edx, [ebp - 0x184]
push edx
push str._s_r_n
push esi
call fcn.00424800
mov eax, dword [ebx + 0x50]
push eax
mov ecx, dword [ebx + 0x34]
push ecx
push str.Image_Base:_0x_08x__Image_Size:_0x_08x_r_n
push esi
call fcn.00424800
mov edx, dword [ebx + 8]
push edx
mov eax, dword [ebx + 0x58]
push eax
push str.Checksum:___0x_08x__Time_Stamp:_0x_08x_r_n
push esi
call fcn.00424800
lea ecx, [ebp - 0x80]
push ecx
push edi
push str.File_Size:____10d__File_Time:___s_r_n
push esi
call fcn.00424800
add esp, 0x48
lea edx, [ebp - 0x184]
push edx
push esi
mov ecx, dword [ebp - 0x194]
call fcn.00423940
mov dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x423c35
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00415465
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423c60
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x4c]
test eax, eax
mov dword [esp + 4], ecx
je 0x423d10
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x38]
xor edx, edx
mov eax, 0x40000000
div ecx
xor esi, esi
xor ebp, ebp
mov edi, ecx
mov dword [esp + 0x10], 1
mov ebx, eax
shl ebx, 2
test ebx, ebx
jbe 0x423d0c
mov edx, esi
imul edx, edi
push 0x1c
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x423cfd
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x423cfd
xor edx, edx
div edi
add esi, eax
cmp dword [esp + 0x28], 0x1000
jne 0x423d08
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jbe 0x423d08
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push edx
mov ebp, eax
call fcn.00423a60
cmp al, 1
jne 0x423d08
inc dword [esp + 0x10]
jmp 0x423d08
xor edx, edx
mov eax, 0x10000
div edi
add esi, eax
cmp esi, ebx
jb 0x423ca6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 4
Function at 0x424bb0
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x38
test eax, eax
push esi
mov esi, ecx
jne 0x424bc7
xor al, al
pop esi
add esp, 0x38
ret 4
push ebp
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test ebp, ebp
jne 0x424beb
pop ebp
xor al, al
pop esi
add esp, 0x38
ret 4
push ebx
push edi
lea edi, [ebp + 1]
push edi
call fcn.00416120
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x424cc8
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
push ebp
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x424cc8
lea edx, [esp + 0x14]
push edx
push ebx
mov ecx, esi
call fcn.00424a10
test al, al
je 0x424cc8
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov word [esi + 2], ax
mov eax, dword [esp + 0x20]
shr ecx, 0x10
mov edx, eax
mov word [esi + 6], ax
mov eax, dword [esp + 0x24]
mov word [esi], cx
shr edx, 0x10
mov ecx, eax
mov word [esi + 0xa], ax
mov eax, dword [esp + 0x28]
mov word [esi + 4], dx
mov edx, eax
push 0x80
mov word [esi + 0xe], ax
lea eax, [esi + 0x10]
push eax
shr ecx, 0x10
push str.CompanyName
mov word [esi + 8], cx
shr edx, 0x10
push ebx
mov ecx, esi
mov word [esi + 0xc], dx
call fcn.00424a70
test al, al
je 0x424cbf
push 0x80
lea ecx, [esi + 0x90]
push ecx
push str.FileDescription
push ebx
mov ecx, esi
call fcn.00424a70
test al, al
jne 0x424cd4
push ebx
call fcn.00416132
add esp, 4
pop edi
pop ebx
pop ebp
xor al, al
pop esi
add esp, 0x38
ret 4
push 0x200
lea edx, [esi + 0x110]
push edx
push str.ProductName
push ebx
mov ecx, esi
call fcn.00424a70
test al, al
push ebx
je 0x424cc0
call fcn.00416132
add esp, 4
pop edi
pop ebx
pop ebp
mov al, 1
pop esi
add esp, 0x38
ret 4

Function at 0x424d80
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [ecx]
xor eax, eax
cmp ecx, 0xffffffff
mov dword [esp], eax
je 0x424daf
mov edx, dword [esp + 0xc]
push eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x424dac
pop ecx
ret 8
mov eax, dword [esp]
pop ecx
ret 8

Function at 0x4298ab
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x43735c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x4298fe
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x4298fe
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x429906
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415465
leave
ret 8
Function at 0x42a9aa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x42a9df
cmp edi, dword [esi + 0xc]
jge 0x42a9df
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42a9df
cmp edi, dword [eax + 8]
jge 0x42a9df
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x42a9e1
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x42aa8d
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x42aac1
jmp fcn.004254a2
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x42ac2b
cmp eax, dword [edi + 0xc]
jge 0x42ac2b
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42ab83
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x42ac14
cmp dword [ebp + 0xc], ebx
je 0x42ac14
jmp 0x42abad
push 0x10
call fcn.0042a876
cmp eax, ebx
je 0x42ab99
mov ecx, eax
call fcn.0042aa84
mov esi, eax
jmp 0x42ab9b
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42abc4
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42abd4
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x42abe6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004254a2
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00417cf0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x42ac26
cmp ecx, dword [esi + 8]
jge 0x42ac26
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x42ac2c
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8