joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1698c25
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop cx
bsr edx, ebp
call 0x1698c25
shl byte [esi + 0x5a], 0x8d
or byte [esi - 1], 0xff
dec dword [eax]
out 0xf, al
xor ebx, ebp
push ds
add byte [edi], 0x97
add ecx, ebp
cmp dl, byte [0x87663784]
push esp
xchg word [esp + 3], dx
and al, 3
setb ch
mov ch, cl
pop edx
mov word [esp + 3], dx
xchg ch, ah
jmp 0x1698c1a
mov word [esp + 2], bx
pushfd
bsf ecx, edi
or cx, 0xafa0
xor cx, 0x668b
xchg dword [esp + 1], edx
jmp 0x1698c3d
push dword [esp + 0xb]
mov word [esp + 3], ax
mov byte [esp + 0xa], dl
jmp 0x169951f
push dword [esp + 7]
push word [esp + 2]
mov dword [esp + 4], ebp
mov word [esp + 0xd], bp
lea esp, [esp + 0x13]
mov word [esp], dx
jmp 0x16995cf
lea esp, [esp]
push word [esp + 1]
push word [esp + 3]
call fcn.0169957f
mov word [esp + 3], bp
push word [esp + 5]
call fcn.01699676
imul esp, esi, 0x74
adc ebp, esi
or eax, 0xee8b1b87
sbb eax, 0x68c9fef9
mov ecx, 0x25cc47c2
xchg word [esp + 1], cx
mov eax, 0x2a96b03b
pop ecx
pop ax
mov byte [esp + 4], cl
jmp 0x1698c76
Function at 0x16991f3
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsr cx, di
mov ch, bl
pop edx
inc al
lea ecx, reloc.kernel32.dll_GetProcAddress
jmp 0x169904c
setg al
mov edx, 0x11ca4653
inc ecx
rdtsc
bswap ecx
lea esp, [esp + 2]
jmp 0x1699023
bsr edx, edi
xchg byte [esp + 1], al
cmp edx, ebp
setb ah
lea ecx, [ecx + edi]
jmp 0x1699184
mov byte [esp], dh
xchg cx, ax
not ecx
mov al, ah
lea eax, reloc.kernel32.dll_GetProcAddress
xchg word [esp], dx
jmp 0x1699039
mov eax, dword [esp]
mov ah, dh
lea ecx, [ebp*4]
xchg byte [esp], dh
jmp 0x16990a1
mov dx, sp
mov edx, ecx
not cx
mov dh, 0x4c
cld
mov al, byte [esp]
jmp 0x169907b
setb ch
mov al, 0xc
xchg cl, dh
mov cx, dx
mov ax, word [esp]
std
jmp 0x16990e8
shl cx, cl
mov dh, byte [esp]
add dx, 0x107e
add esp, 0
xchg dx, ax
btc cx, bp
jmp 0x1699091
add esp, 0
lea eax, reloc.kernel32.dll_GetProcAddress
jmp 0x1699116
mov byte [esp], ch
sbb ecx, 0x16d5f88f
inc dh
lea edx, reloc.kernel32.dll_GetProcAddress
jmp 0x16990d2
mov ah, byte [esp + 2]
not cx
sbb dx, 0xcc66
rol dl, 3
lea esp, [esp + 2]
bswap eax
jmp 0x16990bc
lea edx, [ebp*4]
mov cl, ch
sub esp, 0x13
xchg word [esp + 0xc], ax
pop dword [esp + 5]
rcr ch, 5
jmp 0x169915f
lea eax, [edi*4]
lea edx, [ebx*4]
mov edx, 0x707e0a33
mov byte [esp + 1], bh
mov ecx, 0x908f06a8
mov edx, dword [esp]
jmp 0x16990ff
xchg dx, ax
sub ch, ch
lea esp, [esp + 9]
push word [esp + 6]
not al
xchg dword [esp], edx
jmp 0x16991af
lea edx, reloc.kernel32.dll_GetProcAddress
xchg al, ah
lea edx, [ecx - 0x7c]
xchg byte [esp], ah
not eax
ror dx, cl
jmp 0x169913e
mov cl, ah
pop dx
rol dx, cl
lea eax, [ebx + ebx]
pop dword [esp]
xchg dword [esp], edx
jmp 0x16991dc
bswap eax
xchg word [esp], cx
mov word [esp + 3], sp
push dword [esp + 3]
mov edx, dword [esp + 7]
mov dl, 0x22
jmp 0x1699199
pop word [esp + 2]
xchg cl, ch
xchg word [esp + 1], ax
add esp, 2
jmp 0x169945e
neg eax
mov dx, 0xd26d
lea ecx, [edx*4]
jmp 0x16991c6
jmp 0x1699065
stc
lea esp, [esp + 3]
mov cl, byte [esp + 1]
xchg ecx, eax
xchg word [esp + 2], dx
jmp 0x169923b
rdtsc
xchg dl, al
mov ah, byte [esp + 3]
mov eax, dword [esp + 2]
mov eax, 0xee9086ba
bsr dx, dx
jmp 0x16991f8
xchg cx, dx
bswap ecx
clc
mov dword [esp], ebx
dec cl
mov dl, cl
jmp 0x1699285
mov dword [esp], ebp
push word [esp + 1]
clc
rcl edx, cl
mov dh, cl
mov word [esp], di
jmp 0x1699225
not dx
mov dword [esp + 3], eax
neg ecx
mov word [esp + 3], bp
mov ecx, 0xb3ff805a
sub ch, 0xfa
jmp 0x169920e
mov ax, cx
xchg byte [esp + 3], dh
pushfd
add esp, 2
not edx
pop dx
jmp 0x1699293
pop dx
xchg ecx, eax
pushfd
stc
mov word [esp + 6], cx
pop dx
jmp 0x169926f
lea esp, [esp + 3]
neg ax
mov dh, ch
dec dx
btc edx, esp
mov edx, dword [esp]
jmp 0x169930b
mov dword [esp + 7], ebx
rcl dl, 7
adc ecx, 0x8cc45ff
setp dl
lea esp, [esp + 5]
inc al
jmp 0x1699257
mov cx, 0xe847
mov eax, dword [esp + 4]
mov cl, byte [esp]
mov ecx, dword [esp]
neg dl
sub esp, 8
xchg cx, ax
pushfd
pop cx
neg dx
jmp 0x16992b3
Function at 0x169b0e6
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x169b05f
mov byte [esp + 2], ch
mov word [esp], bp
mov byte [esp + 2], cl
mov dword [esp], edi
mov eax, dword fs:[0x30]
jmp 0x169b075
push di
lea esp, [esp + 2]
jmp 0x169b08e
Function at 0x401164
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401176
mov eax, dword [0x41e08b]
shl eax, 2
mov dword [0x41e08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00413778
pop edx
call fcn.004136dc
call fcn.004137b8
push 0
call fcn.00414bc4
pop ecx
push 0x41e034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x41e093], eax
push 0
jmp fcn.00418a08

Function at 0x4038f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x403931
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0041162c
jmp 0x40393a
mov eax, ebx
mov edx, esi
call fcn.00411590
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x403944
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x403965
mov al, byte [esp]
jmp 0x403967
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x403fec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x403e64
mov eax, dword [0x4218f0]
cmp byte [eax], 0
je 0x404059
mov eax, dword [0x421908]
call fcn.004103c4
call fcn.0040ff98
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00402318
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4040a0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x40408f
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x421990]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x421aa4]
call fcn.0041292c
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x404b34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x404b98
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004117a4
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00402188
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b9f
lea eax, [ebp - 0xc]
call fcn.0041153c
ret
Function at 0x4109d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41e5c0]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x410a68
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x410a48
xor eax, eax
push ebp
push 0x410a41
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x410a84
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410a48
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x41e5c0]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41e5c0], ax
mov esp, ebp
pop ebp
ret

Function at 0x4113c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x421dc4], 0
je 0x411421
cmp word [0x421f98], 0xd7b2
jne 0x4113e9
cmp dword [0x421fa0], 0
jbe 0x4113e9
mov eax, 0x421f94
call dword [0x421fb0]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x411448
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x41e5cc], 0
jne 0x41143d
push 0
push 0x41e624
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x412b20
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x412d50
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x412ba3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x412d50
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x412ba3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x412d6c
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x412c2c
xor eax, eax
push ebp
push 0x412c25
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00412968
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x412c0a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x412d8c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x412c0a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412c2c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x412d46
cmp byte [ebp - 0xd], 0
jne 0x412c73
cmp byte [ebp - 0x12], 0
je 0x412d46
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x412c8c
dec ebx
cmp byte [ebx], 0x2e
je 0x412c9b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x412c8b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x412d46
inc ebx
cmp byte [ebp - 0x12], 0
je 0x412cd8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x412d46
cmp byte [ebp - 0xd], 0
je 0x412d46
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x412d46
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41303c
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x422338], 1
jae 0x4130c2
mov byte [0x41e5bc], 2
mov dword [0x421d88], 0x41d05a
mov dword [0x421d8c], 0x41d06c
mov byte [0x421dc6], 2
mov dword [0x421d74], 0x412158
call fcn.004109a0
test al, al
je 0x41307f
call fcn.004109d0
call fcn.00410a94
mov word [0x421dcc], 0xd7b0
mov word [0x421f98], 0xd7b0
mov word [0x422164], 0xd7b0
call fcn.0041204c
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x421db8], eax
call fcn.0040ea84
mov dword [0x421db4], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x421dac], eax
ret

Function at 0x4179e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x417a4a
call fcn.00417998
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00413ce8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00413ce8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x417ac8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x420218], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x417ba2
cmp dword [0x420214], 0
jne 0x417ba2
cmp dword [0x4203f8], 0
je 0x417b5c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00417898
add esp, 8
mov ebx, eax
test eax, eax
jne 0x417b42
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00417898
add esp, 8
mov ebx, eax
test eax, eax
jne 0x417b42
lea ebx, [ebp - 0x84]
jmp 0x417b43
inc ebx
call fcn.00417a84
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x417bdd
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x42021c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00413ce8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x42021f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x417bdd
cmp dword [0x420214], 0
je 0x417bbc
cmp dword [0x420214], 0xffffffff
je 0x417bdd
push esi
call dword [0x420214]
pop ecx
mov eax, dword [0x420218]
test eax, eax
je 0x417bdd
cmp dword [0x420218], 0xffffffff
je 0x417bdd
cmp byte [eax], 0
je 0x417bdd
push esi
push eax
call fcn.004179e8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418374
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x422cd8], 0
jne 0x4183f5
cmp dword [0x422cf8], 0
jne 0x4183a4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x422cf8], eax
test eax, eax
jne 0x4183a4
push str.GetEnvironmentStrings_failed
call fcn.00417bf4
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x422cf8]
jmp 0x4183b8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00413ce8
pop ecx
mov edi, eax
test eax, eax
jne 0x4183b0
lea edi, [ebp + 1]
push edi
call fcn.004135ec
pop ecx
mov ebx, eax
mov dword [0x422cdc], ebx
test ebx, ebx
jne 0x4183e2
xor eax, eax
jmp 0x4184b8
push edi
mov edx, dword [0x422cf8]
push edx
push ebx
call fcn.00413b98
add esp, 0xc
jmp 0x418415
xor esi, esi
mov ebx, dword [0x422cd8]
jmp 0x41840f
push eax
call fcn.00413ce8
pop ecx
test eax, eax
jne 0x41840b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4183ff
lea ebx, [esi + 4]
push 4
mov dword [0x422ce0], ebx
inc ebx
push ebx
call fcn.004130c4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x418438
xor eax, eax
jmp 0x4184b8
cmp dword [0x422cd8], 0
jne 0x418469
xor esi, esi
mov ebx, dword [0x422cdc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41845a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00413ce8
pop ecx
mov edi, eax
test eax, eax
jne 0x418450
jmp 0x41849a
xor esi, esi
mov ebx, dword [0x422cd8]
mov eax, dword [esp]
mov edi, eax
jmp 0x418494
push eax
call fcn.00413ce8
pop ecx
test eax, eax
je 0x418489
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41848d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x418478
mov eax, dword [0x422cd8]
test eax, eax
je 0x4184aa
push eax
call fcn.004135fc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x422cd8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401699
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4016d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4016d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4016d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4016c0
cmp esi, eax
jb 0x4016da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x402830
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info
Get program files directory

Disassembly:
sub esp, 0x650
mov eax, dword [0x4466c0]
xor eax, esp
mov dword [esp + 0x64c], eax
push esi
push edi
push 0x3ff
lea eax, [esp + 0x59]
push 0
push eax
mov byte [esp + 0x60], 0
call fcn.00422820
add esp, 0xc
push 0
push 0x26
lea ecx, [esp + 0x5c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 0x54]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x402877
lea edx, [esp + 0x54]
mov ecx, 8
mov esi, str.Internet_Exploreriexplore.exe
push edx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4028b9
pop edi
mov eax, 6
pop esi
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.00420360
add esp, 0x650
ret
push 0x3b
lea eax, [esp + 0x1d]
push 0
push eax
mov byte [esp + 0x24], 0
call fcn.00422820
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x58]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 8], eax
je 0x402986
push eax
call fcn.0040472e
mov ecx, dword [esp + 0x18]
add esp, 4
mov esi, eax
mov eax, dword [esp + 8]
push esi
push eax
push ecx
lea edx, [esp + 0x60]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40297d
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40297d
mov eax, dword [esp + 0x10]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
lea ecx, [esp + 0x45c]
push str.StringFileInfo_04x_04xFileVersion
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x45c]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40297d
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push 0x43d958
push eax
call fcn.00420a1d
add esp, 0xc
push esi
call fcn.00404733
add esp, 4
lea ecx, [esp + 0x18]
push ecx
call fcn.004205d1
add esp, 4
cmp eax, 7
jne 0x4029af
pop edi
pop esi
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.00420360
add esp, 0x650
ret
cmp eax, 6
je 0x40289d
cmp eax, 5
jg 0x4029d9
pop edi
mov eax, 5
pop esi
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.00420360
add esp, 0x650
ret
cmp eax, 8
jne 0x4029de
mov ecx, dword [esp + 0x654]
pop edi
pop esi
xor ecx, esp
call fcn.00420360
add esp, 0x650
ret
Function at 0x402a00
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x437741
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4466c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax - 0xc]
lea ebx, [ebp + 1]
push ebx
call fcn.0040472e
mov ecx, dword [esp + 0x30]
push ecx
mov esi, eax
push ebx
push esi
call fcn.00420ad3
mov ebx, dword [esp + 0x38]
add esp, 0x10
push 0x43daf3
mov ecx, ebx
call fcn.00401410
test ebp, ebp
mov dword [esp + 0x14], 1
jle 0x402a7e
mov dl, byte [esp + 0x30]
xor byte [esi + edi], dl
add edi, 1
cmp edi, ebp
jl 0x402a70
test esi, esi
jne 0x402a86
xor eax, eax
jmp 0x402a9b
mov eax, esi
lea edx, [eax + 1]
jmp 0x402a90
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402a90
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.00401760
push esi
call fcn.00404733
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ad2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x40538c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4466c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4053cc
push 0x438960
push 4
push eax
call fcn.00420ad3
push eax
call fcn.00404200
add esp, 0x10
jmp 0x4053de
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40544c
push edi
call fcn.00422f66
mov edi, dword [eax]
call fcn.00422f66
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00420ab4
add esp, 0x18
mov ebx, eax
call fcn.00422f66
cmp dword [eax], 0
je 0x40542c
call fcn.00422f66
push dword [eax]
call fcn.00405320
pop ecx
jmp 0x405433
call fcn.00422f66
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40544c
cmp ebx, esi
jae 0x40544c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x40544e
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00420360
leave
ret
Function at 0x40bf80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40bfc3
call fcn.0040c86f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40bfc3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40bfde
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040bb37
test ebx, ebx
mov esi, eax
je 0x40bfdc
test edi, edi
je 0x40bfdc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40cd5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40cda0
call fcn.0040c86f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40cda0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40cde3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40cdcc
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40cdcc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40cde0
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc