joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f9c86
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x528388
call fcn.004f9e88
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4f9cc6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f9cc6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4f9cde
cmp eax, 0x20b
je 0x4f9ccb
mov dword [ebp - 0x1c], ebx
jmp 0x4f9cf2
cmp dword [ecx + 0x84], 0xe
jbe 0x4f9cc6
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4f9cec
cmp dword [ecx + 0x74], 0xe
jbe 0x4f9cc6
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x5561bc], 0xffffffff
or dword [0x5561c0], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x556174]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x556170]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x5561b8], eax
call fcn.004fa7ce
call fcn.004fa877
cmp dword [0x553774], ebx
jne 0x4f9d52
push 0x4fa874
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004fa85c
push 0x53e04c
push 0x53e048
call sub.MSVCR71.dll__initterm
push 0x4fa812
call fcn.004f9316
mov eax, dword [0x55616c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x556168]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4f9da6
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x53e044
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x4f9e24
cmp al, bl
je 0x4f9dd0
cmp dword [ebp - 0x20], ebx
jne 0x4f9e24
mov al, byte [esi]
cmp al, bl
je 0x4f9de0
cmp al, 0x20
ja 0x4f9de0
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4f9dd0
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x4f9dfc
movzx eax, word [ebp - 0x54]
jmp 0x4f9dff
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004fb56b
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x4f9e1c
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4f9e79
cmp al, 0x22
jne 0x4f9e33
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x4f9e46
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4f9dbe
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004f9ec3
ret
Function at 0x4245b9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42eb24]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042454e
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00412ee0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x424608
cmp dword [ebp - 0x1c], 5
jb 0x424620
jmp 0x42461c
cmp dword [ebp - 0x10], 1
jne 0x424620
cmp dword [ebp - 0x1c], 4
ja 0x42461c
jne 0x424620
cmp dword [ebp - 0x18], 0
jbe 0x424620
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42941c
call fcn.00424422
test eax, eax
jge 0x424641
mov byte [0x4329b0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041125b
add ebp, 0x78
leave
ret
Function at 0x401417
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x400
push edi
mov edx, eax
lea ecx, [ebp - 0x404]
xor ebx, ebx
mov byte [ecx], bl
inc ecx
dec edx
jne 0x40143c
push 0x413520
push 0x413420
push 0x413320
push 0x413220
push 0x413120
push 0x413020
push 0x412f20
push 0x412e20
push 0x412d20
push 0x412c20
push 0x412b20
push 0x412a20
push str._s_r_n_s_r_n_s_r_n_s_r_n_s_r_n_s_r_n_s_r_n_s_r_n_s_r_n_s_r_n_s_r_n_s
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00402dc2
add esp, 0x3c
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
mov edi, 0x4127a0
push edi
call dword [0x417148]
mov esi, eax
cmp esi, 0xffffffff
je 0x401502
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4014be
sub eax, edx
push esi
lea ecx, [ebp - 0x404]
call fcn.004010b1
pop ecx
push esi
mov dword [ebp - 0x408], eax
call dword [0x4170a0]
cmp dword [ebp - 0x408], ebx
je 0x401502
push ebx
push ebx
push 0x410618
push ebx
push edi
push ebx
call fcn.004011a3
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402d95
leave
ret
Function at 0x402386
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
push ebx
add eax, edx
mov ecx, dword [eax + 0x20]
push esi
mov esi, dword [eax + 0x18]
push edi
mov edi, dword [eax + 0x24]
mov eax, dword [eax + 0x1c]
xor ebx, ebx
add ecx, edx
add edi, edx
add eax, edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
test esi, esi
je 0x4023f6
mov esi, dword [ecx + ebx*4]
and dword [ebp - 8], 0
add esi, edx
mov bl, byte [esi]
test bl, bl
je 0x4023e2
mov dword [ebp - 4], esi
movsx esi, bl
or esi, 0x6a
add esi, dword [ebp - 8]
add esi, esi
inc dword [ebp - 4]
mov dword [ebp - 8], esi
mov esi, dword [ebp - 4]
mov bl, byte [esi]
test bl, bl
jne 0x4023c8
mov esi, dword [ebp - 8]
cmp esi, dword [ebp + 8]
je 0x4023fd
mov ebx, dword [ebp - 0xc]
inc ebx
mov dword [ebp - 0xc], ebx
cmp ebx, dword [ebp - 0x10]
jb 0x4023b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 0xc]
movzx ecx, word [edi + ecx*2]
mov eax, dword [eax + ecx*4]
add eax, edx
jmp 0x4023f8
Function at 0x402a52
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, 0x40eef8
mov ebx, 0x416e20
mov dword [ebp - 0xc], 5
push 0x78
pop ecx
mov eax, ebx
mov byte [eax], 0
inc eax
dec ecx
jne 0x402a71
mov ecx, dword [esi]
movzx eax, word [ecx]
lea edx, [ecx + eax]
movsx di, byte [edx + 2]
add edx, 4
push edx
lea edx, [ecx + 2]
mov ecx, ebx
call fcn.00402a1f
add ebx, 0x78
add esi, 4
dec dword [ebp - 0xc]
pop ecx
jne 0x402a6c
mov ebx, 0x40ef0c
mov dword [ebp - 4], 0x411ba0
mov dword [ebp - 0xc], 3
mov esi, 0x400
mov eax, dword [ebp - 4]
mov ecx, esi
mov byte [eax], 0
inc eax
dec ecx
jne 0x402abc
mov ecx, dword [ebx]
movzx eax, word [ecx]
lea edx, [ecx + eax]
movsx di, byte [edx + 2]
add edx, 4
push edx
lea edx, [ecx + 2]
mov ecx, dword [ebp - 4]
call fcn.00402a1f
add dword [ebp - 4], esi
add ebx, 4
dec dword [ebp - 0xc]
pop ecx
jne 0x402ab7
mov ebx, 0x40ef18
mov dword [ebp - 4], 0x412820
mov dword [ebp - 0xc], 0x46
mov esi, 0x100
mov eax, dword [ebp - 4]
mov ecx, esi
mov byte [eax], 0
inc eax
dec ecx
jne 0x402b08
mov ecx, dword [ebx]
movzx eax, word [ecx]
lea edx, [ecx + eax]
movsx di, byte [edx + 2]
add edx, 4
push edx
lea edx, [ecx + 2]
mov ecx, dword [ebp - 4]
call fcn.00402a1f
add dword [ebp - 4], esi
add ebx, 4
dec dword [ebp - 0xc]
pop ecx
jne 0x402b03
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x4127a0
mov eax, dword [ebp - 8]
push 0x1e
pop ecx
mov byte [eax], 0
inc eax
dec ecx
jne 0x402b48
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40f030]
movzx ecx, word [eax]
movzx edi, word [eax + ecx*2 + 4]
xor esi, esi
lea edx, [eax + ecx*2 + 8]
mov dword [ebp - 4], esi
cmp ecx, esi
jbe 0x402b95
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 8]
cmp esi, dword [ebp - 0x10]
jne 0x402b7a
xor esi, esi
mov ebx, dword [ebp - 4]
mov bx, word [eax + ebx*2 + 4]
xor bx, word [edx + esi*2]
inc esi
inc dword [ebp - 4]
mov word [edi], bx
add edi, 2
cmp dword [ebp - 4], ecx
jb 0x402b73
add dword [ebp - 0xc], 4
add dword [ebp - 8], 0x1e
cmp dword [ebp - 0xc], 0x10
jb 0x402b42
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402d95
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e004]
jne 0x402d9f
repz ret
jmp fcn.00403304
Function at 0x408cec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403aca
and dword [ebp - 0x14], 0
cmp dword [0x4101d0], 0
mov dword [ebp - 0x18], eax
jne 0x408d9f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408e47
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408e47
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4101d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4101d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4101d8], eax
call edi
push eax
call esi
mov dword [0x4101e0], eax
test eax, eax
je 0x408d9f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4101dc], eax
mov eax, dword [0x4101dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408df8
cmp dword [0x4101e0], ecx
je 0x408df8
push eax
call esi
push dword [0x4101e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408df8
test ebx, ebx
je 0x408df8
call edi
test eax, eax
je 0x408def
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408def
test byte [ebp - 8], 1
jne 0x408df8
or dword [ebp + 0x10], 0x200000
jmp 0x408e2b
mov eax, dword [0x4101d4]
cmp eax, dword [ebp - 0x18]
je 0x408e2b
push eax
call esi
test eax, eax
je 0x408e2b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408e2b
mov eax, dword [0x4101d8]
cmp eax, dword [ebp - 0x18]
je 0x408e2b
push eax
call esi
test eax, eax
je 0x408e2b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4101d0]
call esi
test eax, eax
je 0x408e47
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408e49
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402d95
leave
ret
Function at 0x1003eb06
Capabilities:
Authenticate hmac

Disassembly:
xor al, 0x99
bt cx, bp
clc
bt dx, si
push 0xe2c5fd59
neg al
push 0x2bbb1da
shr eax, 1
lea esp, [esp + 0x40]
jo 0x10038ce5
je 0x10035afc
push eax
pushfd
adc ecx, ecx
mov byte [esp], 0x35
lea esp, [esp + 8]
jmp 0x100366e3
push ecx
mov bl, 0x69
mov ebx, dword [esp + 4]
pushfd
pop edi
pop ebp
mov edi, dword [esp + 4]
pushal
jmp 0x1003b1fb
pushfd
call fcn.10033f2c
pushal
mov ebp, dword [esp + 0x20]
pushal
mov byte [esp + 8], ah
push dword [esp + 0x10]
mov word [esp + 0x1c], sp
push dword [esp + 0x48]
ret 0x54
mov esi, dword [esp + 0x28]
not ebp
not bp
lea ebp, [eax + 0x71b194d3]
lea esp, [esp + 0x2c]
jae 0x1003aea6
pop ebp
pushfd
pushfd
mov byte [esp + 4], bh
push dword [esp + 8]
ret 0x14
jmp 0x10033c91
Function at 0x480d60
Capabilities:
Copy file

Disassembly:
push 0x18
mov eax, 0x5064b2
call fcn.004cc273
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
call fcn.00406bcb
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00406bcb
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00406bcb
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
mov ecx, dword [edi + 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00487c07
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00446083
push ebx
push 0x52d058
lea ecx, [ebp - 0x10]
call fcn.0042e110
test eax, eax
jne 0x480de5
mov esi, dword [ebp - 0x10]
add esi, 8
jne 0x480dd4
mov eax, ebx
jmp 0x480ddb
push esi
call fcn.004d163d
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004099a1
push dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
lea ecx, [ebp + 0xc]
call fcn.00469df0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
mov edx, eax
mov dword [esp], 0x52686c
call fcn.004522e9
pop ecx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.004068bc
push ebx
mov dl, 1
lea ecx, [ebp - 0x14]
call fcn.00475160
lea edx, [ebp - 0x14]
mov dword [esp], str.instname_target.msi
lea ecx, [ebp + 0xc]
call fcn.004522e9
pop ecx
lea esi, [edi + 0x24]
mov byte [ebp - 4], 7
push eax
mov ecx, esi
call fcn.00446083
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.004068bc
push str.instname_custom.mst
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0xc]
call fcn.004522e9
pop ecx
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0x20], ecx
call fcn.00446083
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.004068bc
push ebx
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x480ec6
mov ecx, dword [ebp + 8]
call fcn.00406bcb
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 3
call fcn.004068bc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004068bc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004068bc
mov byte [ebp - 4], bl
jmp 0x480f49
push 0x524fcc
lea ecx, [ebp + 0xc]
call fcn.00409a3c
lea eax, [edi + 0x1c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.00481371
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
mov bl, al
call fcn.004068bc
mov edi, dword [ebp - 0x20]
test bl, bl
je 0x480f11
push edi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004811e6
lea ecx, [ebp + 0xc]
call fcn.004068bc
mov ecx, dword [ebp + 8]
push edi
call fcn.00407175
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 3
call fcn.004068bc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004068bc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004068bc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004068bc
mov eax, dword [ebp + 8]
call fcn.004cc23c
ret 8
Function at 0x6d574769
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x6d574778
pop dword [ebp - 0x28]
mov eax, 0x6c71a6ae
sub eax, 0xff1a5f36
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xc018c223
add dword [ebp - 0x38], 0x8e398328
mov dword [ebp - 0x34], 0xb0ea7d7b
sub dword [ebp - 0x34], 0x7eb73136
mov dword [ebp - 0x30], 0x8794897
add dword [ebp - 0x30], 0x43d2fb97
mov dword [ebp - 0x2c], 0xc366c96a
sub dword [ebp - 0x2c], 0xc366c96a
lea eax, [ebp - 0x38]
push eax
mov eax, 0x8b5ca455
add eax, 0xe1faebd7
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xfb9046d5
add dword [ebp - 0x38], 0x78e22281
mov dword [ebp - 0x34], 0xa5227439
sub dword [ebp - 0x34], 0x63b612c4
mov dword [ebp - 0x30], 0x3d33a11d
sub dword [ebp - 0x30], 0xd9c434b1
mov dword [ebp - 0x2c], 0x7f8bf5f2
add dword [ebp - 0x2c], 0x80740a0e
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xb0a9b93b
add eax, 0xbcadd6ed
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3a0a8
push 0
call eax
mov ecx, 0xdea65d71
sub ecx, 0xdea60a86
mov edx, eax
mov esi, 0x6d57ee00
add esi, dword [ebp - 0x28]
mov ebx, 0x3cd69a80
sub ebx, 0x3c9a8953
add dword [ebp - 0x18], 0x4c739d15
mov edi, dword [esi]
sub dword [ebp - 4], edi
xor edi, ebx
sub dword [ebp - 0x24], 0x584bc7c
mov dword [edx], edi
sub dword [ebp - 8], 0x4becb214
add edx, 0xc0aeb125
sub edx, 0xc0aeb121
add esi, 4
loop 0x6d574894
add eax, 0x13e7f
mov ebx, eax
add eax, 0x620bed5f
sub eax, 0x620bed5a
mov ecx, 0x6afd9a92
sub ecx, 0xfda69a92
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4046f0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004068c4
test esi, esi
jne 0x404726
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406a2c
jmp 0x404744
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404634
mov edi, eax
test esi, esi
je 0x404744
cmp dword [ebx], 0
je 0x404744
dec esi
jmp 0x40472d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405670
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405a5c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4057f9
test edi, edi
je 0x4057f9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40570b
cmp edi, 0xffffffff
je 0x4056cf
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056cf
mov byte [esp], 0
jmp 0x4057f9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40570b
test ebx, ebx
jne 0x405704
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402580
test eax, eax
jne 0x405704
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4057f9
pause
dec ebp
test ebp, ebp
jg 0x4056b4
cmp edi, 0xffffffff
je 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40572e
mov byte [esp], 0
jmp 0x4057f9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40567e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x405730
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040586c
mov edx, eax
mov ebx, dword [0x4d78c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405797
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405795
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405797
xor edi, edi
cmp byte [esp], 0
je 0x4057c0
mov ebx, dword [esi]
test bl, 1
jne 0x4057d9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x40579d
mov byte [esp + 1], 1
jmp 0x4057d9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402580
cmp ebx, eax
jne 0x4057c0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40574a
cmp byte [esp], 0
je 0x4057f9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406574
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d7050], 0
je 0x4065d5
cmp word [0x4d732c], 0xd7b2
jne 0x40659d
cmp dword [0x4d7334], 0
jbe 0x40659d
mov eax, 0x4d7328
call dword [0x4d7344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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 0x406600
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d4028], 0
jne 0x4065f1
push 0
push 0x4d478c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4d402c], 0
je 0x4067ab
mov edx, edi
mov eax, esi
call dword [0x4d402c]
mov ebx, eax
jmp 0x4067bc
mov eax, 8
call fcn.00404368
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d7051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406748
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4067f1
mov edx, 8
mov eax, ebx
call fcn.00404384
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40896c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408ad1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004068c4
cmp si, word [0x4d47dc]
jb 0x408a04
cmp si, word [0x4d49dc]
ja 0x408a04
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408a04
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d47dc]
jae 0x4089de
mov edi, ebx
dec edi
jmp 0x4089ff
cmp si, word [ebx*8 + 0x4d47dc]
jbe 0x4089ee
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4089ff
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d47e0]
call fcn.0040887c
jmp 0x408a04
cmp edi, dword [ebp - 8]
jae 0x4089c8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408ab3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408ab3
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072f4
push dword [ebp - 0x160]
push 0x408aec
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004072f4
push dword [ebp - 0x164]
push 0x408afc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072f4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040752c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ad8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406924
ret
Function at 0x408c84
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408d87
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d9b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d9b6a]
jne 0x408cd0
mov eax, esi
mov edx, 0x4d9b6c
mov ecx, 0x55
call fcn.004072f4
push 0x4d9b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d71
push 0x4d9b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004068c4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d3f
cmp byte [0x4d9b50], 0
je 0x408d04
mov edx, esi
mov eax, ebx
call fcn.00408b68
jmp 0x408d3f
mov edx, esi
mov eax, ebx
call fcn.0040896c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408d3f
cmp dword [esi], 0
je 0x408d28
mov eax, esi
mov edx, 0x408da0
call fcn.0040744c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040896c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040744c
push 0x4d9b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d9b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407268
push eax
push 0x4d9b6c
call sub.kernel32.dll_lstrcpynW
push 0x4d9b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d8e
lea eax, [ebp - 4]
call fcn.004068c4
ret