joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x439b07
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x439b02
mov eax, dword [ebx]
jmp 0x439b04
mov eax, ebx
mov byte [eax], 0
call fcn.00430a90
test al, al
je 0x439b19
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00432cc0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x439b10
push 0x10000
call fcn.0047a2b1
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.0047e04c
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x439baf
mov eax, dword [ebp + 8]
lea esp, [esp]
test ebx, ebx
je 0x439b82
sub eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
cmp eax, edi
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
cmovae ecx, edx
push dword [ecx]
mov ecx, ebx
push esi
call fcn.0040edea
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x439bc5
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.0047e04c
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x439b60
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0047e0f8
add esp, 4
test eax, eax
jne 0x439bc8
mov byte [ebp - 1], 1
jmp 0x439bcc
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.0047c8d3
add esp, 4
test esi, esi
je 0x439be2
push esi
call fcn.0047b547
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43af10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x14], 8
jb 0x43af22
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x43af39
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 1
push ebx
call fcn.0047cbb9
mov esi, eax
add esp, 8
test esi, esi
je 0x43afb2
push esi
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x43afa9
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x43afa9
cmp dword [ebp - 4], 0
je 0x43afa9
push 0x10
call fcn.0047b5be
add esp, 4
test eax, eax
je 0x43afb2
mov edx, dword [ebp - 4]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push esi
mov ecx, eax
call fcn.0043ad90
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0047b62c
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b250
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x224], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0047b9d3
add esp, 0x1c
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x43b324
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x43b33e
cmp esi, 8
jb 0x43b2c0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x43b368
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.00403190
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b370
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00403190
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 8
Function at 0x4417a0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x220], 0
push esi
push edi
mov dword [ebp - 0x230], eax
cmp dword [ebx + 0x28], 0
jne 0x44195d
mov edx, eax
lea ecx, [ebp - 0x21c]
call fcn.00441640
mov esi, eax
lea edi, [ebx + 0x38]
cmp edi, esi
je 0x441816
cmp dword [edi + 0x14], 8
jb 0x4417fb
push dword [edi]
call fcn.0047b56e
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
push esi
mov word [edi], ax
call fcn.00403d63
cmp dword [ebp - 0x208], 8
jb 0x44182d
push dword [ebp - 0x21c]
call fcn.0047b56e
add esp, 4
cmp dword [ebx + 0x48], 0
je 0x441931
xor eax, eax
push 0x1f2
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.00482250
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x44185f
mov eax, dword [edi]
jmp 0x441861
mov eax, edi
push 0xfa
lea ecx, [ebp - 0x204]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x204], 0
je 0x441931
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 0
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x204]
push str._x_x_x
push eax
call fcn.0047ee76
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x22c]
add esp, 0x14
mov dword [ebp - 0x22c], 0
push 2
push 0
push 0
push eax
call esi
push eax
push dword [ebp - 0x224]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x441931
push dword [ebp - 0x22c]
lea ecx, [ebx + 0x50]
call fcn.004318b0
mov eax, dword [ebp - 0x228]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x220]
mov dword [ebx + 0x2c], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 4
push ecx
push dword [ebp - 0x230]
mov ecx, ebx
call fcn.0043f4b0
mov eax, dword [ebx]
test eax, eax
je 0x44195d
cmp eax, 0xffffffff
je 0x44195d
push ecx
mov ecx, ebx
call fcn.00441a70
test al, al
jne 0x441972
mov ecx, ebx
call fcn.00441b70
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x48], 0
je 0x4419d0
push dword [ebx + 0x2c]
lea eax, [ebp - 0x21c]
push dword [ebx + 0x28]
push dword [ebx + 0x30]
push str._x_x_x
push eax
call fcn.0042f810
add esp, 0x14
lea eax, [ebp - 0x21c]
cmp dword [ebp - 0x208], 8
cmovae eax, dword [ebp - 0x21c]
cmp dword [edi + 0x14], 8
jb 0x4419b1
mov edi, dword [edi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp dword [ebp - 0x208], 8
jb 0x4419d0
push dword [ebp - 0x21c]
call fcn.0047b56e
add esp, 4
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 4
Function at 0x441a70
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0
push edi
mov ecx, dword [esi]
test ecx, ecx
je 0x441b5b
cmp ecx, 0xffffffff
je 0x441b5b
cmp byte [esi + 0x34], 0
mov edx, 0x1000002
push 0
push 0
push 0
mov eax, 2
cmovne eax, edx
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
lea edi, [esi + 0x30]
cmp dword [edi], ebx
je 0x441b01
mov ecx, edi
call fcn.00431910
test ebx, ebx
je 0x441b01
cmp ebx, 0xffffffff
je 0x441b01
mov dword [edi], ebx
call fcn.00443c40
mov dword [ebp - 8], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4d8e58]
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x441af4
call fcn.00443c50
mov ecx, dword [0x4d8e58]
push dword [ebp - 8]
mov eax, dword [ecx]
push dword [ebp - 0x10]
push edi
push ebx
call dword [eax + 4]
mov eax, dword [edi]
test eax, eax
je 0x441b5b
cmp eax, 0xffffffff
je 0x441b5b
xorps xmm0, xmm0
mov ecx, esi
movq qword [ebp - 0x14], xmm0
call fcn.00445590
mov ecx, eax
add ecx, 0xffffffff
adc edx, 0xffffffff
test edx, edx
ja 0x441b5b
jb 0x441b31
cmp ecx, 0x7ffffffe
ja 0x441b5b
push 0
push dword [ebp - 0x14]
mov dword [esi + 0x2c], eax
push dword [ebp - 0x10]
push 4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x28], eax
test eax, eax
je 0x441b5b
mov dword [esi + 0x28], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x441b70
Capabilities:
Set environment variable

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
lea ecx, [esi + 0x50]
test eax, eax
je 0x441bc3
cmp eax, 0xffffffff
je 0x441bc3
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00431910
add esi, 0x38
cmp dword [esi + 0x14], 8
jb 0x441ba2
mov eax, dword [esi]
jmp 0x441ba4
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x441bbc
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
pop esi
ret
mov eax, dword [esi + 0x28]
test eax, eax
je 0x441bd1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0x30]
lea ecx, [esi + 0x30]
test eax, eax
je 0x441be5
cmp eax, 0xffffffff
je 0x441be5
call fcn.00431910
mov eax, dword [esi]
test eax, eax
je 0x441bf7
cmp eax, 0xffffffff
je 0x441bf7
mov ecx, esi
call fcn.00445510
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
pop esi
ret
Function at 0x441f60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea esi, [edi + 4]
mov ecx, esi
call fcn.00439ae0
add esp, 4
test al, al
jne 0x441fe2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x441fd4
cmp eax, 0x21
je 0x441fd4
cmp eax, 5
jne 0x441fad
mov eax, 0x3e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 8
jb 0x441fb5
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea eax, [ecx*2 + 0x3e9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x3ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x20], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x442d40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi], 0
je 0x442d5e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x442d61
mov eax, dword [esi + 4]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x442d95
cmp byte [ebp + 0xc], 0
je 0x442d95
cmp byte [esi], 0
je 0x442d86
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x442d89
mov eax, dword [esi + 4]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44d4f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
sar ecx, 2
test ecx, ecx
je 0x44d55e
push ebx
push esi
mov ebx, ecx
mov eax, dword [edi]
lea edi, [edi + 4]
movzx esi, cl
movzx edx, al
xor esi, edx
shr ecx, 8
mov dword [ebp - 4], eax
movzx eax, ah
xor ecx, dword [esi*4 + 0x4bb760]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x4bb760]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x4bb760]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x4bb760]
dec ebx
jne 0x44d507
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x44e370
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x44e39c
xor ecx, ecx
jmp 0x44e3b9
cmp byte [edi], 0
jne 0x44e3a5
xor ecx, ecx
jmp 0x44e3b9
mov ecx, edi
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44e3b0
sub ecx, esi
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x1c]
call fcn.004422d0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x44e3cf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
mov esi, eax
mov dword [ebp - 0x38], esi
jb 0x44e3ec
push dword [ebp - 0x1c]
call fcn.0047b56e
add esp, 4
test esi, esi
jne 0x44e405
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x44e530
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047a2b1
add esp, 4
mov esi, eax
push dword [ebp - 0x38]
push esi
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
je 0x44e44e
cmp byte [edi], 0
jne 0x44e442
xor edi, edi
jmp 0x44e44e
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x44e445
sub edi, ecx
lea ecx, [ebp - 0x1c]
mov dword [edx + 4], edi
call fcn.004422d0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x44e464
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 8], 8
jb 0x44e47c
push dword [ebp - 0x1c]
call fcn.0047b56e
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
cmp word [esi], ax
jne 0x44e499
xor ecx, ecx
jmp 0x44e4af
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44e4a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x34]
call fcn.00403190
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x1c]
call fcn.00442190
mov edi, eax
cmp ebx, edi
je 0x44e4f3
cmp dword [ebx + 0x14], 0x10
jb 0x44e4da
push dword [ebx]
call fcn.0047b56e
add esp, 4
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
call fcn.0040cb72
cmp dword [ebp - 8], 0x10
jb 0x44e504
push dword [ebp - 0x1c]
call fcn.0047b56e
add esp, 4
cmp dword [ebp - 0x20], 8
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
jb 0x44e527
push dword [ebp - 0x34]
call fcn.0047b56e
add esp, 4
push esi
call fcn.0047b547
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 8
Function at 0x44f200
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x4d3a00]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x4d4c38]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0047b547
add esp, 4
mov edi, 0x100
jmp 0x44f260
mov esi, dword [0x4d8ec8]
xor dl, dl
test esi, esi
jle 0x44f298
lea esp, [esp]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x44f293
mov eax, dword [esi*4 + 0x4d82e0]
test eax, eax
je 0x44f293
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x44f270
dec edi
test edi, edi
jle 0x44f2a1
test dl, dl
jne 0x44f260
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret

Function at 0x44f440
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x44f450
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x44f44d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x44f44d
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete al
ret

Function at 0x44fa06
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 4]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push 0
push 0
push 0x402
push dword [eax + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret
Function at 0x450a2a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x20c
mov eax, 0x4a67c0
call fcn.00483770
mov edi, ecx
mov dword [ebp - 0x218], edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [0x4d86e0]
mov esi, eax
test edx, edx
movzx ecx, di
push 0x4bb208
cmovne esi, edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x450b08
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x450b02
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x450b02
lea ecx, [ebp - 0x214]
call fcn.0040c592
push edi
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_SHCreateMemStream]
mov ecx, dword [ebp - 0x214]
mov edi, eax
test ecx, ecx
je 0x450ac1
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
push 0x10
mov dword [ebp - 0x214], edi
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x450aed
lea eax, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
push eax
push edi
mov dword [eax], ebx
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x450aef
mov esi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
call fcn.00404794
mov eax, esi
jmp 0x450b5e
mov edi, dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x450b5c
xor eax, eax
xor ebx, ebx
push 0x1fc
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00482250
push esi
push edi
lea eax, [ebp - 0x210]
push str.Function:__s__image_id:_d__Last_error:__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x210]
push ebx
push str.Error
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
call fcn.0048371f
ret
Function at 0x45539f
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x8c8
mov eax, 0x4a6e2d
call fcn.00483770
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x818], ebx
mov esi, ebx
mov dword [ebp - 0x814], ebx
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], ebx
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x828]
mov dword [ebp - 4], ebx
push eax
call fcn.00454e85
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45540a
jmp 0x455522
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push ebx
push eax
call fcn.00482250
add esp, 0xc
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], 8
cmovae eax, dword [ebp - 0x828]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
je 0x455522
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047a2b1
pop ecx
mov ebx, eax
xor eax, eax
push edi
push eax
push ebx
call fcn.00482250
xor edx, edx
add esp, 0xc
mov ecx, edx
mov esi, edx
test edi, edi
je 0x455516
mov ax, word [ebp + esi*2 - 0x810]
mov word [ebx + ecx*2], ax
inc ecx
cmp word [ebp + esi*2 - 0x810], dx
jne 0x45550d
lea ecx, [ebp - 0x8d0]
call fcn.0041b9d0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], 8
cmovae eax, dword [ebp - 0x828]
push eax
push ebx
lea eax, [ebp - 0x8d0]
push eax
call fcn.00454f6a
lea eax, [ebp - 0x8d0]
push eax
call fcn.00455543
push edi
xor eax, eax
push eax
push ebx
call fcn.00482250
add esp, 0xc
lea ecx, [ebp - 0x8d0]
xor eax, eax
mov dword [ebp - 0x8d4], eax
mov byte [ebp - 4], al
call fcn.004558b6
mov ecx, dword [ebp - 0x8d4]
xor edx, edx
inc esi
cmp esi, edi
jb 0x45548e
push ebx
call fcn.0047b547
xor esi, esi
inc esi
xor ebx, ebx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
push ebx
push 1
call fcn.0040314a
mov eax, esi
call fcn.0048371f
ret 4

Function at 0x455927
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x30
mov eax, 0x4a6f00
call fcn.0048373d
xor esi, esi
mov edi, vtable.WinMod::CWinModule.0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], 0x4bc198
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45598b
test al, 0x10
jne 0x45598b
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
call fcn.0045631b
test eax, eax
jne 0x45598b
inc esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x3c]
mov dword [ebp + 8], eax
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [ebp - 0x3c], edi
call fcn.00419bcc
mov eax, esi
call fcn.0048370b
ret 4
Function at 0x45684a
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4d8cec], 0
push esi
je 0x45686e
xor eax, eax
jmp 0x4568fb
mov al, byte [0x4d79c6]
xor esi, esi
movzx ecx, al
inc esi
test al, al
mov dword [fcn.0047b664], 0x47b664
lea eax, [ebp - 0x198]
mov dword [fcn.0047b62c], 0x47b62c
push eax
cmove ecx, esi
mov dword [fcn.00480b91], 0x480b91
push 0x101
mov dword [fcn.004812ae], 0x4812ae
mov dword [fcn.0047cbb9], 0x47cbb9
mov byte [0x4d79c6], cl
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4568f8
mov eax, dword [ebp - 0x198]
cmp al, 1
jne 0x4568f2
shr eax, 8
cmp al, 1
jne 0x4568f2
mov dword [0x4d8cec], esi
mov dword [0x4d8ce8], 3
jmp 0x456867
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047aabf
mov esp, ebp
pop ebp
ret