joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4110f0
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push esi
push 0x104
call fcn.004144f2
push 0x4034e0
push 0x42bea0
mov esi, eax
call fcn.00414617
add esp, 0xc
test eax, eax
jne 0x4112a8
push 0x403490
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
jne 0x4112a8
push 0x403440
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
jne 0x4112a8
push 0x4033f0
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
jne 0x4112a8
push 0x4033a0
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
jne 0x41129a
push 0x403350
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
jne 0x41129a
push 0x4030b8
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
je 0x4111c1
mov eax, dword [0x42be9c]
push 0x407638
push eax
jmp 0x4112b4
push 0x403068
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
je 0x4111e8
mov ecx, dword [0x42be9c]
push 0x407670
push ecx
jmp 0x4112b4
push 0x403300
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
jne 0x41128d
push 0x403260
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
jne 0x41128d
push 0x403210
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
jne 0x41128d
push 0x4032b0
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
jne 0x41128d
push 0x4031bc
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
jne 0x411286
push 0x403164
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
jne 0x411286
push 0x40310c
push 0x42bea0
call fcn.00414617
add esp, 8
test eax, eax
je 0x4112ba
push 0x4076e0
jmp 0x4112ad
mov eax, dword [0x42be9c]
push 0x4076a8
push eax
jmp 0x4112b4
mov ecx, dword [0x42be9c]
push 0x407600
push ecx
jmp 0x4112b4
push 0x4075c8
mov edx, dword [0x42be9c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call fcn.00410f50
push 0x104
call fcn.004144f2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x411339
cmp dword [0x42be9c], 0
je 0x411330
test esi, esi
je 0x411330
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x40752c
push esi
call edi
push 0x429790
push esi
call edi
push 0x407434
push esi
call edi
push esi
push 0x64
push ebx
push 0x407534
push 0x407718
push 0x407550
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [0x42be9c]
push ebx
push eax
call edi
mov ecx, dword [0x42be9c]
push 0x407578
push ecx
call edi
pop edi
push ebx
call fcn.0041440b
add esp, 4
test esi, esi
pop ebx
je 0x411347
push esi
call fcn.0041440b
add esp, 4
pop esi
ret
Function at 0x411400
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x426178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 4
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
push 0x407738
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x429790
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x214]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4114b4
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x40779c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
xor ecx, ebp
call fcn.004143f7
mov esp, ebp
pop ebp
ret

Function at 0x4114d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x426178]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
push edi
push 0x11c
push eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x120]
push eax
xor edi, edi
call fcn.0041ae20
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x41157a
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x114
call esi
test eax, eax
jne 0x41157a
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004143f7
mov esp, ebp
pop ebp
ret
push 0x4077b4
push 0x4077c8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4115a0
lea ecx, [ebp - 0x144]
push ecx
call eax
jmp 0x4115ad
lea edx, [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x110]
sub eax, 2
jne 0x4115f4
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x4115e2
cmp dword [ebp - 0x118], edi
jne 0x4115f4
mov edi, 1
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004143f7
mov esp, ebp
pop ebp
ret
cmp eax, 4
ja 0x4115f4
push 0x4077e4
call fcn.0041467d
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004143f7
mov esp, ebp
pop ebp
ret
Function at 0x4143e8
Capabilities:
Accept command line arguments

Disassembly:
push 0xf0
push 0x4244b0
call fcn.00415c70
push dword [section..data]
call fcn.00415c2e
pop ecx
mov dword [section..data], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4143d8
mov ecx, dword [ebp - 0xa4]
and ecx, 0x7fff
mov edi, dword [ebp - 0xa0]
cmp edi, 2
je 0x41427f
or ecx, 0x8000
mov edx, dword [ebp - 0xac]
mov eax, edx
shl eax, 8
mov esi, dword [ebp - 0xa8]
add eax, esi
mov dword [0x428b10], edi
mov dword [0x428b18], eax
mov dword [0x428b1c], edx
mov dword [0x428b20], esi
mov dword [0x428b14], ecx
call fcn.004141c5
mov dword [ebp - 0xb8], eax
xor ebx, ebx
inc ebx
push ebx
call fcn.00415b66
pop ecx
test eax, eax
jne 0x4142d0
push 0x1c
call fcn.00414197
pop ecx
call fcn.00415980
test eax, eax
jne 0x4142e1
push 0x10
call fcn.00414197
pop ecx
mov dword [ebp - 4], ebx
call fcn.00415335
test eax, eax
jge 0x4142f5
push 0x1b
call fcn.00414796
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42d620], eax
call fcn.004151f9
mov dword [0x428b00], eax
call fcn.00415139
test eax, eax
jge 0x41431b
push 8
call fcn.00414796
pop ecx
call fcn.00414e47
test eax, eax
jge 0x41432c
push 9
call fcn.00414796
pop ecx
push ebx
call fcn.004148ba
pop ecx
test eax, eax
je 0x41433e
push eax
call fcn.00414796
pop ecx
call fcn.00414de3
test byte [ebp - 0xd4], bl
je 0x414354
movzx ecx, word [ebp - 0xd0]
jmp 0x414357
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call main
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb8], 0
jne 0x41437a
push eax
call fcn.00414a0b
call fcn.00414a41
jmp 0x4143bb
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xb4]
jmp 0x4143dd
mov eax, 0xff
call fcn.00415cb8
ret
call fcn.00415e61
jmp 0x41420b
Function at 0x414ab0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x426008]
je 0x414ad6
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x414ac4
cmp esi, 0x17
jae 0x414c30
push 3
call fcn.004188d2
cmp eax, 1
pop ecx
je 0x414bfa
push 3
call fcn.004188d2
test eax, eax
pop ecx
jne 0x414b09
cmp dword [section..data], 1
je 0x414bfa
cmp edi, 0xfc
je 0x414c30
push 0x40191c
mov edi, 0x314
push edi
mov esi, 0x428b58
push esi
call fcn.00418865
add esp, 0xc
test eax, eax
je 0x414b3f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004170d8
add esp, 0x14
mov byte [0x428c75], bl
push 0x104
mov ebx, 0x428b71
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414b82
push 0x401904
push 0x2fb
push ebx
call fcn.00418865
add esp, 0xc
test eax, eax
je 0x414b82
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004170d8
add esp, 0x14
push ebx
push edi
push esi
call fcn.004187ec
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x414ba0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004170d8
add esp, 0x14
push 0x401900
push edi
push esi
call fcn.004187ec
add esp, 0xc
test eax, eax
je 0x414bc0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004170d8
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x42600c]
push edi
push esi
call fcn.004187ec
add esp, 0xc
test eax, eax
je 0x414be5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004170d8
add esp, 0x14
push 0x12010
push 0x4018d8
push esi
call fcn.00418647
add esp, 0xc
jmp 0x414c30
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x414c30
cmp edi, 0xffffffff
je 0x414c30
mov edx, dword [esi*8 + 0x42600c]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414c19
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x418200
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x418213
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41820f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x418240
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x41827f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x418275
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x418281
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x418265
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x418647
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004155df
xor ebx, ebx
cmp dword [0x429438], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41871e
push 0x401b08
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x418689
xor eax, eax
jmp 0x4187e2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401afc
push edi
call esi
cmp eax, ebx
je 0x418682
push eax
call fcn.00415574
mov dword [esp], 0x401aec
push edi
mov dword [0x429438], eax
call esi
push eax
call fcn.00415574
mov dword [esp], 0x401ad8
push edi
mov dword [0x42943c], eax
call esi
push eax
call fcn.00415574
mov dword [0x429440], eax
lea eax, [ebp - 8]
push eax
call fcn.00414833
test eax, eax
pop ecx
pop ecx
je 0x4186ec
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004170d8
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41871e
push 0x401abc
push edi
call esi
push eax
call fcn.00415574
cmp eax, ebx
pop ecx
mov dword [0x429448], eax
je 0x41871e
push 0x401aa4
push edi
call esi
push eax
call fcn.00415574
pop ecx
mov dword [0x429444], eax
mov eax, dword [0x429444]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x418797
cmp dword [0x429448], esi
je 0x418797
push eax
call fcn.004155ed
pop ecx
call eax
cmp eax, ebx
je 0x418764
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x429448]
call fcn.004155ed
pop ecx
call eax
test eax, eax
je 0x418764
test byte [ebp - 0x18], 1
jne 0x418797
lea eax, [ebp - 0xc]
push eax
call fcn.00414874
test eax, eax
pop ecx
je 0x41877f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004170d8
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41878e
or dword [ebp + 0x10], 0x200000
jmp 0x4187c8
or dword [ebp + 0x10], 0x40000
jmp 0x4187c8
mov eax, dword [0x42943c]
cmp eax, esi
je 0x4187c8
push eax
call fcn.004155ed
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4187c8
mov eax, dword [0x429440]
cmp eax, esi
je 0x4187c8
push dword [ebp - 4]
push eax
call fcn.004155ed
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x429438]
call fcn.004155ed
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a42a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41a45b
call fcn.00416031
mov dword [eax], esi
call fcn.00416019
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00417183
add esp, 0x14
push 0x16
pop eax
jmp 0x41a4b0
test dword [ebp + 0xc], 0xfffffff9
jne 0x41a437
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41a488
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00416049
pop ecx
call fcn.00416019
mov eax, dword [eax]
jmp 0x41a4b0
test al, 0x10
jne 0x41a4ae
test al, 1
je 0x41a4ae
test byte [ebp + 0xc], 2
je 0x41a4ae
call fcn.00416031
mov dword [eax], 5
call fcn.00416019
mov dword [eax], 0xd
jmp 0x41a47f
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41c14a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4294a0]
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
jne 0x41c199
call edi
mov esi, eax
cmp esi, ebx
je 0x41c17f
mov dword [0x4294a0], 1
jmp 0x41c19e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41c194
push 2
pop eax
mov dword [0x4294a0], eax
jmp 0x41c199
mov eax, dword [0x4294a0]
cmp eax, 1
jne 0x41c1f9
cmp esi, ebx
jne 0x41c1b1
call edi
mov esi, eax
cmp esi, ebx
jne 0x41c1b1
xor eax, eax
jmp 0x41c2c8
cmp word [esi], bx
mov eax, esi
je 0x41c1c6
inc eax
inc eax
cmp word [eax], bx
jne 0x41c1b8
inc eax
inc eax
cmp word [eax], bx
jne 0x41c1b8
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.004144f2
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x41c1ea
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x41c2c8
push dword [ebp - 4]
push esi
push edi
call fcn.004191d0
add esp, 0xc
jmp 0x41c1dc
cmp eax, 2
je 0x41c202
cmp eax, ebx
jne 0x41c1aa
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x41c1aa
cmp byte [esi], bl
je 0x41c243
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x41c1aa
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41c22f
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x41c215
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.00419183
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
jne 0x41c267
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x41c1aa
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x41c2b9
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x41c2cd
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41c291
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x41c2a3
sub eax, ecx
sar eax, 1
cmp byte [esi], bl
lea edi, [edi + eax*2 + 2]
jne 0x41c26e
push dword [ebp - 8]
mov word [edi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.0041440b
pop ecx
push dword [ebp - 8]
jmp 0x41c25c
Function at 0x41d643
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x426178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
call fcn.00414833
test eax, eax
pop ecx
je 0x41d678
push edi
push edi
push edi
push edi
push edi
call fcn.004170d8
add esp, 0x14
push 4
pop eax
call fcn.0041e5b0
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d786
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec esi
neg esi
sbb esi, esi
and esi, 0x103
inc esi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], edi
jne 0x41d6ff
push 0x4077c8
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x41d6ff
push 0x40254c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x41d6ff
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], edi
call eax
cmp eax, 1
jne 0x41d6ff
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x41d6ff
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push dword [ebp - 8]
call fcn.0041d617
add esp, 0xc
test eax, eax
jl 0x41d786
not edi
and dword [ebp - 8], edi
je 0x41d731
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.0041d617
add esp, 0xc
test eax, eax
jl 0x41d786
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x41d73c
mov dword [ebp - 8], eax
lea edi, [ebx - 1]
not edi
and edi, dword [ebp - 0x14]
sub edi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x41d750
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp edi, ebx
jb 0x41d786
push 4
push 0x1000
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x41d786
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41d786
xor eax, eax
inc eax
jmp 0x41d788
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004143f7
leave
ret
Function at 0x41fd30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, eax
mov esi, 1
call fcn.0041fb70
test eax, eax
je 0x41fd5f
mov esi, dword [eax + 0x34]
shr esi, 0xb
push eax
and esi, 1
call fcn.00412210
add esp, 4
pop edi
mov eax, esi
pop esi
add esp, 8
ret
push edi
call fcn.0041fca0
mov edi, eax
test edi, edi
je 0x41fdc7
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x40280c
push edi
mov dword [esp + 0x24], 4
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41fdb2
mov esi, dword [esp + 8]
shr esi, 0xb
push edi
and esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 8
ret
push eax
push 0x4027d4
call fcn.00420f20
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x420130
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
call fcn.0041fb70
mov esi, eax
test esi, esi
je 0x42018a
mov edi, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov eax, edi
push eax
call ebx
cmp word [edi + eax*2 - 2], 0x3a
jne 0x42016b
push edi
call ebx
mov ecx, dword [esi + 0xc]
mov word [ecx + eax*2 - 2], 0
mov edi, dword [esi + 0xc]
call fcn.004200d0
push esi
mov edi, eax
call fcn.00412210
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
push edi
call fcn.0041fca0
mov esi, eax
test esi, esi
je 0x4201ef
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x4028cc
push esi
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4201da
lea edi, [esp + 0x10]
call fcn.004200d0
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x20c
ret
push eax
push 0x402890
call fcn.00420f20
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x20c
ret
Function at 0x420210
Capabilities:
Accept command line arguments
Check mutex on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0xac
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x429f48
call fcn.004241a4
add esp, 8
push 0x429f48
push 0x428940
call fcn.0041f510
mov esi, eax
test esi, esi
je 0x4203b5
cmp word [esi], 0
je 0x4203b5
push edi
xor eax, eax
mov ecx, 0x2a
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x429f48
lea eax, [esp + 0xc]
push eax
call fcn.0041f510
push 0x429790
call fcn.00420f80
mov eax, dword [esp + 0x10]
test eax, eax
pop edi
je 0x42028b
call fcn.004221f0
test eax, eax
je 0x4203c2
mov eax, esi
call fcn.0041fd30
test eax, eax
mov dword [0x42999c], eax
jne 0x4202bd
mov eax, dword [0x42b8bc]
test eax, eax
jne 0x4202bd
push 0x4029f0
call fcn.00420f20
add esp, 4
xor eax, eax
pop esi
add esp, 0xac
ret 0x10
mov eax, dword [0x403fac]
test eax, eax
jne 0x4202ea
mov eax, esi
call fcn.00420130
test eax, eax
je 0x4202ea
push 0x4029b0
call fcn.00420f20
add esp, 4
xor eax, eax
pop esi
add esp, 0xac
ret 0x10
call fcn.0040a600
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [0x429d3c], eax
jne 0x420323
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x402978
call fcn.00420f20
add esp, 8
xor eax, eax
pop esi
add esp, 0xac
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42035a
mov eax, dword [0x429d3c]
test eax, eax
je 0x4203c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x429d3c], 0
xor eax, eax
pop esi
add esp, 0xac
ret 0x10
push 0x104
push 0x429d40
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x420399
push 0x429d40
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4203a6
push 0x402948
call fcn.00420f20
add esp, 4
mov eax, 1
pop esi
add esp, 0xac
ret 0x10
push 0x402918
call fcn.00420f20
add esp, 4
mov eax, 1
pop esi
add esp, 0xac
ret 0x10
push 0x4028d8
call fcn.00420f20
add esp, 4
xor eax, eax
pop esi
add esp, 0xac
ret 0x10

Function at 0x4208c0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x42a968
push 0
mov dword [0x42a758], eax
mov eax, dword [esp + 0xc]
push eax
push 0x420840
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x42a96c], eax
je 0x420906
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
ret 4
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push 0x402abc
call fcn.00420f40
mov edx, dword [0x42a96c]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x42a96c], 0
ret 4

Function at 0x420f40
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x400
lea eax, [esp + 0x408]
push eax
push ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x400
ret