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

Disassembly:
push 0xffffffffffffffff
push 0x42afeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [esp + 0x224]
push ebp
push esi
push edi
mov esi, ecx
push 0
mov ecx, dword [esp + 0x22c]
push eax
push 0x438904
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
call fcn.0040c4a0
mov eax, dword [esp + 0xc]
push 0x438904
push eax
mov dword [esp + 0x228], 0
call fcn.00414977
add esp, 8
test eax, eax
je 0x410eb3
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x22c]
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
push ecx
push 0
push 0x434b88
push ebp
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x410ea8
lea edx, [esp + 0x10]
push edx
call fcn.00406790
add esp, 4
test eax, eax
jne 0x410ece
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040cdb0
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x410f96
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [esp + 0x10]
push 2
push eax
push ecx
call esi
test eax, eax
jne 0x410f01
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x410f96
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x234]
lea edx, [esp + 0x114]
push edx
push eax
push ebp
call fcn.00406200
add esp, 0xc
lea ecx, [esp + 0x114]
push 4
push 0
push ecx
call esi
test eax, eax
jne 0x410f5f
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x410f96
lea edx, [esp + 0x114]
push 4
lea eax, [esp + 0x14]
push edx
push eax
call esi
test eax, eax
mov dword [esp + 0x220], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x410f8c
call fcn.00424c17
xor eax, eax
jmp 0x410f96
call fcn.00424c17
mov eax, 1
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x218
ret 0x10
Function at 0x410fb0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42b00b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x364
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.004204de
mov edi, dword [esi + 4]
mov dword [esp + 0x37c], ebx
cmp edi, 1
je 0x411024
push 1
mov ecx, esi
call fcn.0040c3a0
lea eax, [esp + 0x130]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
jne 0x411049
cmp dword [esi + 4], edi
je 0x4110e6
jmp 0x4110de
mov edx, dword [esp + 0x384]
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x134]
push edx
push eax
call fcn.00406200
add esp, 0xc
lea ecx, [esp + 0x234]
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x411087
cmp dword [esi + 4], edi
je 0x4110e6
jmp 0x4110de
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x260]
push eax
lea edx, [esp + 0x134]
push ecx
push edx
call fcn.00406200
mov al, byte [esp + 0x240]
add esp, 0xc
test al, 0x10
jne 0x4110c2
lea eax, [esp + 0x2c]
push eax
call fcn.00406790
add esp, 4
lea ecx, [esp + 0x234]
push ecx
push ebp
call ebx
cmp eax, 1
je 0x41108d
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 4], edi
je 0x4110e6
push edi
mov ecx, esi
call fcn.0040c3a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x37c], 0xffffffff
call fcn.00420552
mov ecx, dword [esp + 0x374]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x370
ret 4
Function at 0x4111b0
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x110
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
test edi, edi
jne 0x41122c
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4111fa
pop edi
xor ax, ax
pop esi
add esp, 0x110
ret 4
mov edi, str.user32.dll
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41124d
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x411270
pop edi
xor ax, ax
pop esi
add esp, 0x110
ret 4
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x41128d
pop edi
xor ax, ax
pop esi
add esp, 0x110
ret 4
mov eax, dword [esp + 0xc]
push esi
push edi
lea ecx, [esp + 0x1c]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4112b7
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor ax, ax
pop esi
add esp, 0x110
ret 4
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4112e5
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor ax, ax
pop esi
add esp, 0x110
ret 4
mov ecx, dword [esp + 8]
push esi
mov di, word [ecx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ax, di
pop edi
pop esi
add esp, 0x110
ret 4
Function at 0x411310
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x184
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x41134b
xor ax, ax
pop edi
add esp, 0x184
ret
mov edi, str.Fuhjin.ini
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x114]
push 0x80
push ecx
push 0x438904
push str.LangID
push str.FXEZ_LANG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
pop ebx
test eax, eax
jne 0x4113b3
xor ax, ax
pop edi
add esp, 0x184
ret
lea edx, [esp + 0x108]
push edx
call fcn.00414e77
add esp, 4
pop edi
add esp, 0x184
ret
Function at 0x4120b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42b0ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x61c
mov eax, dword [0x435654]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x644]
mov edx, dword [esp + 0x63c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebp
lea ecx, [esp + 0x220]
push 0x104
push ecx
push 0x438904
xor ebx, ebx
push edx
push str.SourceDisksFiles
mov dword [esp + 0x64c], ebx
call esi
cmp eax, ebx
ja 0x412131
lea ecx, [esp + 0x10]
mov dword [esp + 0x634], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x412280
cmp dword [edi + 0x41c], 4
jne 0x412141
push str.SourceDisksNames.amd64
jmp 0x412146
push str.SourceDisksNames.x86
lea ecx, [esp + 0x14]
call fcn.00424d54
mov edx, dword [esp + 0x10]
push ebp
lea eax, [esp + 0x11c]
push 0x104
push eax
lea ecx, [esp + 0x228]
push 0x438904
push ecx
push edx
call esi
mov edi, eax
cmp edi, ebx
jne 0x4121c8
push str.SourceDisksNames
lea ecx, [esp + 0x14]
call fcn.00424d54
mov edx, dword [esp + 0x10]
push ebp
lea eax, [esp + 0x11c]
push 0x104
push eax
lea ecx, [esp + 0x228]
push 0x438904
push ecx
push edx
call esi
mov edi, eax
cmp edi, ebx
jne 0x4121c8
lea ecx, [esp + 0x10]
mov dword [esp + 0x634], 0xffffffff
call fcn.00424c17
xor eax, eax
jmp 0x412280
xor ecx, ecx
xor esi, esi
mov al, byte [esp + esi + 0x118]
cmp al, 0x2c
jne 0x4121de
mov byte [esp + ecx + 0x14], 0
jmp 0x4121e2
mov byte [esp + ecx + 0x14], al
mov al, byte [esp + ecx + 0x14]
test al, al
jne 0x412209
lea eax, [esp + 0x14]
push eax
call fcn.00406e90
mov al, byte [esp + 0x18]
add esp, 4
test al, al
je 0x412204
cmp ebx, 3
je 0x41220f
xor ecx, ecx
inc ebx
jmp 0x41220a
inc ecx
inc esi
cmp esi, edi
jbe 0x4121cc
push 0
lea ecx, [esp + 0x324]
push 0
lea edx, [esp + 0x42c]
push ecx
push edx
push ebp
call fcn.00414bd7
push 0
lea eax, [esp + 0x338]
push 0
lea ecx, [esp + 0x440]
push eax
lea edx, [esp + 0x548]
push ecx
push edx
call fcn.00414ebf
mov eax, dword [esp + 0x668]
lea ecx, [esp + 0x3c]
push eax
lea edx, [esp + 0x554]
push ecx
push edx
call fcn.00406200
add esp, 0x34
lea ecx, [esp + 0x10]
mov dword [esp + 0x634], 0xffffffff
call fcn.00424c17
mov eax, 1
mov ecx, dword [esp + 0x62c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x628
ret 0xc

Function at 0x4125c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4125e6
add esp, 0x208
ret 4
lea ecx, [esp]
lea edx, [esp + 0x104]
push ecx
push 0
push 0x434b88
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x41260d
add esp, 0x208
ret 4
lea eax, [esp]
push eax
call fcn.00406790
add esp, 4
test eax, eax
jne 0x412627
add esp, 0x208
ret 4
lea ecx, [esp]
push 0x2e
push ecx
call fcn.00414bb0
add esp, 8
test eax, eax
je 0x41263d
mov byte [eax], 0
lea edx, [esp]
push edx
call fcn.00405ec0
add esp, 4
test eax, eax
jne 0x412657
add esp, 0x208
ret 4
mov ecx, dword [esp + 0x20c]
lea eax, [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x208
ret 4
Function at 0x412ef0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42b236
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0c
mov eax, dword [0x435654]
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0xc20], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc2c]
mov byte [esp + 0xc20], 1
and eax, 0xffff
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
je 0x412f65
cmp ecx, 9
je 0x412f5e
cmp ecx, 0x12
jne case.default.0x412f91
push str.Korean
jmp 0x412f7a
push str.English
jmp 0x412f7a
shr eax, 0xa
dec eax
je 0x412f75
dec eax
je 0x412f9f
dec eax
jne case.default.0x412f91
push 0x435308
lea ecx, [esp + 0x10]
call fcn.00424d54
call fcn.004053e0
cmp eax, 4
ja case.default.0x412f91
jmp dword [eax*4 + 0x413114]
push str.NT40
jmp 0x412fc0
push 0x4352fc
jmp 0x412f7a
push str.WIN2000
jmp 0x412fc0
push str.WIN95
jmp 0x412fc0
push str.WIN98
jmp 0x412fc0
push str.WIN64
lea ecx, [esp + 0x14]
call fcn.00424d54
lea esi, [ebp + 0x208]
push str.PATH.INI
push ebp
mov ecx, esi
call fcn.00407600
mov edi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, esi
call fcn.004076a0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
mov ecx, esi
and edi, eax
call fcn.00407730
and edi, eax
je case.default.0x412f91
mov edx, dword [esp + 0x10]
lea eax, [ebp + 0x104]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x41c]
push 0x400
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4130a6
mov edi, dword [esp + 0xc28]
xor edx, edx
xor esi, esi
mov al, byte [esp + esi + 0x418]
lea ecx, [esp + edx + 0x18]
cmp al, 0x2c
mov byte [ecx], al
je 0x413056
test al, al
je 0x413056
inc edx
jmp 0x41309d
test edx, edx
je 0x41309d
cmp byte [esp + 0x18], 0x3b
je 0x41309b
mov byte [ecx], 0
mov cl, byte [esp + 0x18]
cmp cl, 0x20
lea eax, [esp + 0x18]
jne 0x41307a
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
je 0x413071
lea ecx, [esp + 0x818]
push ecx
push eax
push ebp
call fcn.00406200
add esp, 0xc
lea edx, [esp + 0x818]
mov ecx, edi
push edx
call fcn.004205e6
xor edx, edx
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jbe 0x41303e
lea ecx, [esp + 0x10]
mov byte [esp + 0xc20], 0
call fcn.00424c17
lea ecx, [esp + 0xc]
mov dword [esp + 0xc20], 0xffffffff
call fcn.00424c17
mov eax, 1
jmp 0x4130f9
lea ecx, [esp + 0x10]
mov byte [esp + 0xc20], 0
call fcn.00424c17
lea ecx, [esp + 0xc]
mov dword [esp + 0xc20], 0xffffffff
call fcn.00424c17
xor eax, eax
mov ecx, dword [esp + 0xc18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xc18
ret 8
Function at 0x419151
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x435f00
cmp edx, dword [eax]
je 0x419173
add eax, 8
inc ecx
cmp eax, 0x435f90
jl 0x419164
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x435f00]
jne 0x4192a1
mov eax, dword [0x43c910]
cmp eax, 1
je 0x41927b
test eax, eax
jne 0x4191a4
cmp dword [0x435a18], 1
je 0x41927b
cmp edx, 0xfc
je 0x4192a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4191db
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041a490
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004193c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41921e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004193c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42e6e0
push edi
call fcn.00415820
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041a490
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041a4a0
lea eax, [ebp - 0xa0]
push 0x42e6c0
push eax
call fcn.0041a4a0
push dword [esi + 0x435f04]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041a4a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041b360
add esp, 0x2c
pop edi
jmp 0x4192a1
lea eax, [ebp + 8]
lea esi, [esi + 0x435f04]
push 0
push eax
push dword [esi]
call fcn.004193c0
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]
pop esi
leave
ret
Function at 0x41f560
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00414e90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41f62b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41f62b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41f5de
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41f5e9
or bh, 8
and edi, 0x8000000
je 0x41f604
mov eax, dword [0x43e0fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41f62b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fa00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41fa2b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41fa4f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41fa6a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41fc55
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41fcad
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x438904
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41fca0
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41fcaf
xor eax, eax
pop esi
leave
ret 4

Function at 0x423b0b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x423b4d
call fcn.00428680
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x423b4d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x423b44
xor eax, eax
jmp 0x423b55
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00423b5b
pop edi
pop esi
pop ebx
ret 4

Function at 0x429285
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4292b3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4292d1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004291eb
jmp 0x4292d1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4292d1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004291eb
test edi, edi
mov eax, edi
jne 0x4292bb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4051d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x4051ee
mov ecx, dword [ebp - 8]
call fcn.004064d0
jmp 0x405201
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x405201
mov ecx, dword [ebp - 8]
call fcn.00406330
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
mov edx, dword [ebp - 8]
and ecx, dword [edx + 0x1384]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4055f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x405603
xor eax, eax
jmp 0x405653
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x40561b
xor eax, eax
jmp 0x405653
mov dword [ebp - 0x14], 0x400
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x400
jle 0x405638
xor eax, eax
jmp 0x405653
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
je 0x405650
xor eax, eax
jmp 0x405653
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x405700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xa
movzx eax, word [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00408090
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00406d70
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esp, ebp
pop ebp
ret