joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024b3
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x410048
call fcn.00403794
mov edi, 0x94
mov eax, edi
call fcn.004038f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x415188], ecx
mov eax, dword [esi + 4]
mov dword [0x415194], eax
mov edx, dword [esi + 8]
mov dword [0x415198], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41518c], esi
cmp ecx, 2
je 0x402513
or esi, 0x8000
mov dword [0x41518c], esi
shl eax, 8
add eax, edx
mov dword [0x415190], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40254e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40254e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402566
cmp eax, 0x20b
je 0x402553
mov dword [ebp - 0x1c], esi
jmp 0x40257a
cmp dword [ecx + 0x84], 0xe
jbe 0x40254e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402574
cmp dword [ecx + 0x74], 0xe
jbe 0x40254e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004036bd
pop ecx
test eax, eax
jne 0x40258e
push 0x1c
call fcn.00402439
pop ecx
call fcn.004035b4
test eax, eax
jne 0x40259f
push 0x10
call fcn.00402439
pop ecx
call fcn.00403300
mov dword [ebp - 4], esi
call fcn.004030b6
test eax, eax
jge 0x4025b8
push 0x1b
call fcn.00402414
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x415ac0], eax
call fcn.00402f94
mov dword [0x415178], eax
call fcn.00402ef2
test eax, eax
jge 0x4025de
push 8
call fcn.00402414
pop ecx
call fcn.00402cbf
test eax, eax
jge 0x4025ef
push 9
call fcn.00402414
pop ecx
push 1
call fcn.00402770
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x402605
push eax
call fcn.00402414
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402c62
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x402626
movzx eax, word [ebp - 0x40]
jmp 0x402629
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401050
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x402647
push edi
call fcn.0040289d
call fcn.004028bf
jmp 0x402679
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004037cf
ret
Function at 0x4027da
Capabilities:
Terminate process

Disassembly:
push 8
push 0x410070
call fcn.00403794
push 8
call fcn.00403a98
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4151c8], esi
jne 0x40280e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4151c4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4151c0], al
cmp dword [ebp + 0xc], edi
jne 0x402858
cmp dword [0x415ab4], edi
je 0x402848
mov eax, dword [0x415ab0]
sub eax, 4
mov dword [0x415ab0], eax
cmp eax, dword [0x415ab4]
jb 0x402848
mov eax, dword [eax]
cmp eax, edi
je 0x402829
call eax
jmp 0x402829
push 0x413724
mov eax, 0x413620
call fcn.0040273a
pop ecx
push 0x41392c
mov eax, 0x413828
call fcn.0040273a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x402889
cmp dword [ebp + 0x10], edi
jne 0x402897
mov dword [0x4151c8], esi
push dword [ebp + 8]
call fcn.004026f8
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x402896
push 8
call fcn.004039cb
pop ecx
ret
call fcn.004037cf
ret

Function at 0x4028dd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x413fc0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x413d50]
je 0x402912
inc eax
cmp eax, 0x13
jb 0x402903
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x413d50]
jne 0x402a38
mov eax, dword [0x415180]
cmp eax, 1
je 0x402a10
cmp eax, edx
jne 0x402942
cmp dword [0x413d44], 1
je 0x402a10
cmp ecx, 0xfc
je 0x402a38
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402978
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403cc0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402350
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4029ac
mov eax, edi
push eax
call fcn.00402350
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x410468
push edi
call fcn.00403dc0
add esp, 0x10
push edi
call fcn.00402350
push dword [esi + 0x413d54]
mov ebx, eax
call fcn.00402350
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004038f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403cc0
push edi
push ebx
call fcn.00403cd0
push 0x410448
push ebx
call fcn.00403cd0
push dword [esi + 0x413d54]
push ebx
call fcn.00403cd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00403bbb
add esp, 0x2c
jmp 0x402a38
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x413d54]
push dword [esi]
call fcn.00402350
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]
mov ecx, dword [ebp + 0x88]
call fcn.00403f15
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x403bbb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x415440], ebx
push esi
push edi
jne 0x403c3b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403c76
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x415440], eax
je 0x403c76
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x415444], eax
call esi
cmp dword [0x415188], 2
mov dword [0x415448], eax
jne 0x403c3b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x415450], eax
je 0x403c3b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41544c], eax
mov eax, dword [0x41544c]
test eax, eax
je 0x403c80
call eax
test eax, eax
je 0x403c67
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x415450]
test eax, eax
je 0x403c67
test byte [ebp - 8], 1
jne 0x403c80
cmp dword [0x415194], 4
jb 0x403c7a
or byte [ebp + 0x12], 0x20
jmp 0x403c9f
xor eax, eax
jmp 0x403caf
or byte [ebp + 0x12], 4
jmp 0x403c9f
mov eax, dword [0x415444]
test eax, eax
je 0x403c9f
call eax
mov ebx, eax
test ebx, ebx
je 0x403c9f
mov eax, dword [0x415448]
test eax, eax
je 0x403c9f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x415440]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406716
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x406744
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40674b
cmp ebx, dword [eax + 4]
jae 0x40674b
xor eax, eax
jmp 0x40693b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40675c
xor eax, eax
inc eax
jmp 0x40693a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406772
cmp ecx, edx
jae 0x4068b7
cmp dword [eax + 4], 0
je 0x40677b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x406763
cmp dword [ebp + 8], 0
je 0x40679d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4068b7
cmp eax, esi
jae 0x4068b7
mov eax, dword [0x415468]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4067c2
cmp dword [esi*4 + 0x415470], edi
je 0x4068bb
inc esi
cmp esi, eax
jl 0x4067b0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406937
cmp dword [ebp - 8], 0x1000000
jne 0x406937
test byte [ebp - 0xc], 0xcc
je 0x406840
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406937
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406937
cmp word [eax + 0x18], 0x10b
jne 0x406937
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406937
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406840
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406840
test byte [ecx + 0x27], 0x80
jne 0x4068b7
push 1
push 0x4154b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x406754
mov ecx, dword [0x415468]
test ecx, ecx
mov edx, ecx
jle 0x406874
lea eax, [ecx*4 + 0x41546c]
cmp dword [eax], edi
je 0x406874
dec edx
sub eax, 4
test edx, edx
jg 0x406868
test edx, edx
jne 0x4068a5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406881
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406899
lea eax, [edx*4 + 0x415470]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406887
cmp ecx, 0x10
jge 0x4068a5
inc ecx
mov dword [0x415468], ecx
push 0
push 0x4154b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406754
xor eax, eax
jmp 0x40693a
test esi, esi
jle 0x406754
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4154b0
call ebx
test eax, eax
jne 0x406754
cmp dword [esi*4 + 0x415470], edi
je 0x406911
mov eax, dword [0x415468]
lea esi, [eax - 1]
test esi, esi
jl 0x4068ff
cmp dword [esi*4 + 0x415470], edi
je 0x4068fb
dec esi
jns 0x4068ef
test esi, esi
jge 0x40690f
cmp eax, 0x10
jge 0x40690a
inc eax
mov dword [0x415468], eax
lea esi, [eax - 1]
jmp 0x406911
je 0x406929
xor ecx, ecx
test esi, esi
jl 0x406929
lea eax, [ecx*4 + 0x415470]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406917
push 0
push 0x4154b0
call ebx
jmp 0x406754
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409dc9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004038f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409e64
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x415188]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x409e64
cmp eax, 1
je 0x409e85
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409e64
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x409e31
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409e60
xor eax, eax
inc eax
jmp 0x409ea4
cmp edi, eax
jae 0x409e68
xor eax, eax
jmp 0x409ea4
cmp eax, esi
jae 0x409e6f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x415188]
jmp 0x409e88
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40adf3
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x411f30
call fcn.00403794
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x415600], edi
jne 0x40ae37
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40ae22
mov dword [0x415600], ebx
jmp 0x40ae37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40ae37
mov dword [0x415600], 2
mov eax, dword [0x415600]
cmp eax, ebx
jne 0x40ae57
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x40af1a
cmp eax, 2
je 0x40ae60
cmp eax, edi
jne 0x40ae88
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x40ae73
mov eax, dword [0x4154d0]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x40ae8f
xor eax, eax
jmp 0x40af1a
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004038f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x40aec2
cmp esi, edi
jne 0x40aed8
push dword [ebp - 0x20]
call fcn.004046f2
pop ecx
mov esi, eax
cmp esi, edi
je 0x40ae88
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40af0b
cmp dword [ebp + 0x14], edi
jne 0x40aef5
push edi
push edi
jmp 0x40aefb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x40af17
push esi
call fcn.004045da
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004037cf
ret
Function at 0x40af23
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x411f40
call fcn.00403794
xor esi, esi
cmp dword [0x415604], esi
jne 0x40af67
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40af52
mov dword [0x415604], edi
jmp 0x40af67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40af67
mov dword [0x415604], 2
mov eax, dword [0x415604]
cmp eax, 2
je 0x40b048
cmp eax, esi
je 0x40b048
cmp eax, 1
jne 0x40afac
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x40af95
mov eax, dword [0x4154d0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x40afb3
xor eax, eax
jmp 0x40b05a
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004038f0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x40afe9
cmp edi, esi
jne 0x40b004
lea eax, [ebx + ebx]
push eax
call fcn.004046f2
pop ecx
mov edi, eax
cmp edi, esi
je 0x40afac
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40b037
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x40b021
push esi
push esi
jmp 0x40b027
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x40b043
push edi
call fcn.004045da
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x40b05a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004037cf
ret
Function at 0x40b871
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 0x40b88a
or eax, 0xffffffff
jmp 0x40b8eb
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x40b8e7
push 0x3d
push esi
call fcn.0040ba71
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40b8e7
cmp esi, eax
je 0x40b8e7
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4151a8]
sete cl
cmp eax, dword [0x4151ac]
mov dword [ebp - 8], ecx
jne 0x40b8cd
mov edi, eax
call fcn.0040b810
mov dword [0x4151a8], eax
cmp eax, ebx
jne 0x40b926
cmp dword [ebp + 0xc], ebx
je 0x40b8ef
cmp dword [0x4151b0], ebx
je 0x40b8ef
call fcn.0040b393
test eax, eax
je 0x40b926
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x40b8f8
xor eax, eax
jmp 0x40b8ea
push 4
call fcn.004046f2
cmp eax, ebx
pop ecx
mov dword [0x4151a8], eax
je 0x40b8e7
mov dword [eax], ebx
cmp dword [0x4151b0], ebx
jne 0x40b926
push 4
call fcn.004046f2
cmp eax, ebx
pop ecx
mov dword [0x4151b0], eax
je 0x40b8e7
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4151a8]
call fcn.0040b7c3
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x40b987
cmp dword [esi], ebx
je 0x40b987
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004045da
cmp dword [ebp - 8], ebx
pop ecx
jne 0x40b96a
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x40b9c8
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x40b961
mov eax, edi
shl eax, 2
push eax
push dword [0x4151a8]
call fcn.004069c4
cmp eax, ebx
pop ecx
pop ecx
je 0x40b9c8
jmp 0x40b9c3
cmp dword [ebp - 8], ebx
jne 0x40ba33
cmp edi, ebx
jge 0x40b996
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4151a8]
call fcn.004069c4
cmp eax, ebx
pop ecx
pop ecx
je 0x40b8e7
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4151a8], eax
cmp dword [ebp + 0xc], ebx
je 0x40ba1d
push dword [ebp - 4]
call fcn.00402350
inc eax
inc eax
push eax
call fcn.004046f2
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x40ba1d
push dword [ebp - 4]
push esi
call fcn.00403cc0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x40ba16
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004045da
pop ecx
cmp dword [ebp - 8], ebx
je 0x40ba2b
push dword [ebp - 4]
call fcn.004045da
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x40b8ea
push dword [ebp - 4]
call fcn.004045da
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x40b8f4
Function at 0x471ee6
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x471f25
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x471f25
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x471f25
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x471f25
cmp dword [ecx + 0x74], 0xe
jbe 0x471f25
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x475e30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x475e5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x475e5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4761dd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x480848
push 0x480840
push str.FlsAlloc
push 0x1f
call fcn.004764c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x476211
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x476217
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x47625b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x480858
push 0x480850
push str.FlsGetValue
push 0x21
call fcn.004764c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x476292
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x47629a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x480860
push 0x480858
push str.FlsSetValue
push 0x22
call fcn.004764c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4762d4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x479d0e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x479dab
push ebx
push esi
call fcn.00479dae
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00479c12
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x479d58
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x479daa
push edi
push eax
call fcn.004786a9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x479d78
call fcn.00477762
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x479da9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00479c12
add esp, 0x20
test eax, eax
jne 0x479d97
push edi
call fcn.00477762
jmp 0x479d9f
push ebx
call fcn.00477762
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret